Part Number Hot Search : 
MMBT4 LL101B MM5Z8V2H CXP84220 U2860 MP564 DSPIC3 CAR3101A
Product Description
Full Text Search
 

To Download HD6432120FA Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
 To all our customers
Regarding the change of names mentioned in the document, such as Hitachi Electric and Hitachi XX, to Renesas Technology Corp.
The semiconductor operations of Mitsubishi Electric and Hitachi were transferred to Renesas Technology Corporation on April 1st 2003. These operations include microcomputer, logic, analog and discrete devices, and memory chips other than DRAMs (flash memory, SRAMs etc.) Accordingly, although Hitachi, Hitachi, Ltd., Hitachi Semiconductors, and other Hitachi brand names are mentioned in the document, these names have in fact all been changed to Renesas Technology Corp. Thank you for your understanding. Except for our corporate trademark, logo and corporate statement, no changes whatsoever have been made to the contents of the document, and these changes do not constitute any alteration to the contents of the document itself. Renesas Technology Home Page: http://www.renesas.com
Renesas Technology Corp. Customer Support Dept. April 1, 2003
Cautions
Keep safety first in your circuit designs! 1. Renesas Technology Corporation puts the maximum effort into making semiconductor products better and more reliable, but there is always the possibility that trouble may occur with them. Trouble with semiconductors may lead to personal injury, fire or property damage. Remember to give due consideration to safety when making your circuit designs, with appropriate measures such as (i) placement of substitutive, auxiliary circuits, (ii) use of nonflammable material or (iii) prevention against any malfunction or mishap. Notes regarding these materials 1. These materials are intended as a reference to assist our customers in the selection of the Renesas Technology Corporation product best suited to the customer's application; they do not convey any license under any intellectual property rights, or any other rights, belonging to Renesas Technology Corporation or a third party. 2. Renesas Technology Corporation assumes no responsibility for any damage, or infringement of any third-party's rights, originating in the use of any product data, diagrams, charts, programs, algorithms, or circuit application examples contained in these materials. 3. All information contained in these materials, including product data, diagrams, charts, programs and algorithms represents information on products at the time of publication of these materials, and are subject to change by Renesas Technology Corporation without notice due to product improvements or other reasons. It is therefore recommended that customers contact Renesas Technology Corporation or an authorized Renesas Technology Corporation product distributor for the latest product information before purchasing a product listed herein. The information described here may contain technical inaccuracies or typographical errors. Renesas Technology Corporation assumes no responsibility for any damage, liability, or other loss rising from these inaccuracies or errors. Please also pay attention to information published by Renesas Technology Corporation by various means, including the Renesas Technology Corporation Semiconductor home page (http://www.renesas.com). 4. When using any or all of the information contained in these materials, including product data, diagrams, charts, programs, and algorithms, please be sure to evaluate all information as a total system before making a final decision on the applicability of the information and products. Renesas Technology Corporation assumes no responsibility for any damage, liability or other loss resulting from the information contained herein. 5. Renesas Technology Corporation semiconductors are not designed or manufactured for use in a device or system that is used under circumstances in which human life is potentially at stake. Please contact Renesas Technology Corporation or an authorized Renesas Technology Corporation product distributor when considering the use of a product contained herein for any specific purposes, such as apparatus or systems for transportation, vehicular, medical, aerospace, nuclear, or undersea repeater use. 6. The prior written approval of Renesas Technology Corporation is necessary to reprint or reproduce in whole or in part these materials. 7. If these products or technologies are subject to the Japanese export control restrictions, they must be exported under a license from the Japanese government and cannot be imported into a country other than the approved destination. Any diversion or reexport contrary to the export control laws and regulations of Japan and/or the country of destination is prohibited. 8. Please contact Renesas Technology Corporation for further details on these materials or the products contained therein.
Hitachi 16-Bit Single-Chip Microcomputer
H8S/2128 Series, H8S/2124 Series H8S/2128F-ZTATTM
Hardware Manual -- Supplement --
ADE-602-114B Rev. 3.0 5/22/02 Hitachi, Ltd.
Cautions
1. Hitachi neither warrants nor grants licenses of any rights of Hitachi's or any third party's patent, copyright, trademark, or other intellectual property rights for information contained in this document. Hitachi bears no responsibility for problems that may arise with third party's rights, including intellectual property rights, in connection with use of the information contained in this document. 2. Products and product specifications may be subject to change without notice. Confirm that you have received the latest product standards or specifications before final design, purchase or use. 3. Hitachi makes every attempt to ensure that its products are of high quality and reliability. However, contact Hitachi's sales office before using the product in an application that demands especially high quality and reliability or where its failure or malfunction may directly threaten human life or cause risk of bodily injury, such as aerospace, aeronautics, nuclear power, combustion control, transportation, traffic, safety equipment or medical equipment for life support. 4. Design your application so that the product is used within the ranges guaranteed by Hitachi particularly for maximum rating, operating supply voltage range, heat radiation characteristics, installation conditions and other characteristics. Hitachi bears no responsibility for failure or damage when used beyond the guaranteed ranges. Even within the guaranteed ranges, consider normally foreseeable failure rates or failure modes in semiconductor devices and employ systemic measures such as fail-safes, so that the equipment incorporating Hitachi product does not cause bodily injury, fire or other consequential damage due to operation of the Hitachi product. 5. This product is not designed to be radiation resistant. 6. No one is permitted to reproduce or duplicate, in any form, the whole or part of this document without written approval from Hitachi. 7. Contact Hitachi's sales office for any questions regarding this document or Hitachi semiconductor products.
February 2002
Announcement of Changes to Hardware Manual Contents
This is to announce that, with the addition of H8S/2128S and H8S/2127S products, a Supplement has been prepared for the following sections of the Hitachi single-chip microcomputer H8S/2128 Series and H8S/2124 Series Hardware Manual. Applicable Manual: H8S/2128 Series, H8S/2124 Series, H8S/2128F-ZTAT Hardware Manual, 2nd Edition (ADE-602-114A), published September 1999 Applicable Sections: Section 16, I2C Bus Interface Replaced with "Supplement, Section 16" Sections 22-23, Electrical Characteristics Replaced with "Supplement, Section 22" Appendix F, Product Code Lineup Replaced with "Supplement, Appendix F" Semiconductor & Integrated Circuits Hitachi, Ltd.
Contents
Section 16 I2 C Bus Interface [Option]............................................................................
16.1 Overview ............................................................................................................................ 16.1.1 Features ................................................................................................................. 16.1.2 Block Diagram ...................................................................................................... 16.1.3 Input/Output Pins .................................................................................................. 16.1.4 Register Configuration .......................................................................................... 16.2 Register Descriptions.......................................................................................................... 16.2.1 I2C Bus Data Register (ICDR) .............................................................................. 16.2.2 Slave Address Register (SAR) .............................................................................. 16.2.3 Second Slave Address Register (SARX) .............................................................. 16.2.4 I2C Bus Mode Register (ICMR)............................................................................ 16.2.5 I2C Bus Control Register (ICCR).......................................................................... 16.2.6 I2C Bus Status Register (ICSR)............................................................................. 16.2.7 Serial/Timer Control Register (STCR) ................................................................. 16.2.8 DDC Switch Register (DDCSWR) ....................................................................... 16.2.9 Module Stop Control Register (MSTPCR) ........................................................... 16.3 Operation ............................................................................................................................ 16.3.1 I2C Bus Data Format.............................................................................................. 16.3.2 Master Transmit Operation ................................................................................... 16.3.3 Master Receive Operation ..................................................................................... 16.3.4 Slave Receive Operation ....................................................................................... 16.3.5 Slave Transmit Operation...................................................................................... 16.3.6 IRIC Setting Timing and SCL Control ................................................................. 16.3.7 Automatic Switching from Formatless Mode to I 2C Bus Format......................... 16.3.8 Operation Using the DTC ..................................................................................... 16.3.9 Noise Canceler ...................................................................................................... 16.3.10 Sample Flowcharts ................................................................................................ 16.3.11 Initialization of Internal State................................................................................ 16.4 Usage Notes........................................................................................................................ 1 1 1 2 4 5 6 6 9 10 11 14 21 26 27 29 30 30 32 34 37 39 41 42 43 44 44 48 50
Section 22 Electrical Characteristics............................................................................... 57
22.1 Voltage of Power Supply and Operating Range ................................................................ 22.2 Electrical Characteristics [H8S/2128 Series, H8S/2128 F-ZTAT] .................................... 22.2.1 Absolute Maximum Ratings.................................................................................. 22.2.2 DC Characteristics ................................................................................................ 22.2.3 AC Characteristics ................................................................................................ 22.2.4 A/D Conversion Characteristics............................................................................ 22.2.5 Flash Memory Characteristics .............................................................................. 22.2.6 Usage Note ............................................................................................................ 57 59 59 60 71 90 92 94
i
22.3 Electrical Characteristics [H8S/2128S Series] ................................................................... 22.3.1 Absolute Maximum Ratings.................................................................................. 22.3.2 DC Characteristics ................................................................................................ 22.3.3 AC Characteristics ................................................................................................ 22.3.4 A/D Conversion Characteristics............................................................................ 22.3.5 Usage Note ............................................................................................................ 22.4 Electrical Characteristics [H8S/2124 Series] ..................................................................... 22.4.1 Absolute Maximum Ratings.................................................................................. 22.4.2 DC Characteristics ................................................................................................ 22.4.3 AC Characteristics ................................................................................................ 22.4.4 A/D Conversion Characteristics............................................................................ 22.4.5 Usage Note ............................................................................................................
95 95 96 107 126 128 130 130 131 138 155 157
Appendix F Product Code Lineup ................................................................................... 159
ii
Section 16 I2C Bus Interface [Option]
A two-channel I2C bus interface is available as an option in the H8S/2128 Series. The I2C bus interface is not available for the H8S/2124 Series. Observe the following notes when using this option. 1. For mask-ROM versions, a W is added to the part number in products in which this optional function is used. Examples: HD6432127SWFA 2. The product number is identical for F-ZTAT versions. However, be sure to inform your Hitachi sales representative if you will be using this option.
16.1
Overview
A two-channel I2C bus interface is available for the H8S/2128 Series as an option. The I2C bus interface conforms to and provides a subset of the Philips I2C bus (inter-IC bus) interface functions. The register configuration that controls the I2C bus differs partly from the Philips configuration, however. Each I2C bus interface channel uses only one data line (SDA) and one clock line (SCL) to transfer data, saving board and connector space. 16.1.1 Features
* Selection of addressing format or non-addressing format I2C bus format: addressing format with acknowledge bit, for master/slave operation Serial format: non-addressing format without acknowledge bit, for master operation only * Conforms to Philips I2C bus interface (I2C bus format) * Two ways of setting slave address (I2C bus format) * Start and stop conditions generated automatically in master mode (I2C bus format) * Selection of acknowledge output levels when receiving (I2C bus format) * Automatic loading of acknowledge bit when transmitting (I2C bus format) * Wait function in master mode (I 2C bus format) A wait can be inserted by driving the SCL pin low after data transfer, excluding acknowledgement. The wait can be cleared by clearing the interrupt flag.
1
* Wait function in slave mode (I2C bus format) A wait request can be generated by driving the SCL pin low after data transfer, excluding acknowledgement. The wait request is cleared when the next transfer becomes possible. * Three interrupt sources Data transfer end (including transmission mode transition with I 2C bus format and address reception after loss of master arbitration) Address match: when any slave address matches or the general call address is received in slave receive mode (I2C bus format) Stop condition detection * Selection of 16 internal clocks (in master mode) * Direct bus drive (with SCL and SDA pins) Two pins--P52/SCL0 and P47/SDA0--(normally NMOS push-pull outputs) function as NMOS open-drain outputs when the bus drive function is selected. Two pins--P24/SCL1 and P23/SDA1--(normally CMOS pins) function as NMOS-only outputs when the bus drive function is selected. * Automatic switching from formatless mode to I2C bus format (channel 0 only) Slave mode addressless (no start condition/end condition, non-addressing) operation Operation using common data pin (SDA) and independent clock pin (VSYNCI, SCL) pin configuration Automatic switching from formatless mode to I2C bus format on fall of SCL 16.1.2 Block Diagram
Figure 16.1 shows a block diagram of the I2C bus interface. Figure 16.2 shows an example of I/O pin connections to external circuits. Channel 0 I/O pins and channel 1 I/O pins differ in structure, and have different specifications for permissible applied voltages. For details, see section 22, Electrical Characteristics.
2
Formatless dedicated clock (channel 0 only) o SCL Noise canceler Bus state decision circuit Arbitration decision circuit SDA Output data control circuit PS ICCR Clock control ICMR
ICSR
ICDRT
ICDRS
ICDRR Noise canceler Address comparator
SAR, SARX
Legend: ICCR: I2C bus control register ICMR: I2C bus mode register ICSR: I2C bus status register ICDR: I2C bus data register SAR: Slave address register SARX: Second slave address register PS: Prescaler
Interrupt generator
Interrupt request
Figure 16.1 Block Diagram of I2C Bus Interface
Internal data bus
3
Vcc
VCC SCL SCL in SCL out SDA SDA SCL
SDA in SDA out (Master) This chip
SCL SDA
SCL in SCL out
SCL in SCL out
SDA in SDA out (Slave 1)
SDA in SDA out (Slave 2)
Figure 16.2 I2C Bus Interface Connections (Example: This Chip as Master) 16.1.3 Input/Output Pins
Table 16.1 summarizes the input/output pins used by the I2C bus interface. Table 16.1 I2C Bus Interface Pins
Channel 0 Name Serial clock Serial data Formatless serial clock 1 Serial clock Serial data Abbreviation* SCL0 SDA0 VSYNCI SCL1 SDA1 I/O I/O I/O Input I/O I/O Function IIC0 serial clock input/output IIC0 serial data input/output IIC0 formatless serial clock input IIC1 serial clock input/output IIC1 serial data input/output
Note: * In the text, the channel subscript is omitted, and only SCL and SDA are used.
4
SCL SDA
16.1.4
Register Configuration
Table 16.2 summarizes the registers of the I2C bus interface. Table 16.2 Register Configuration
Channel 0 Name I 2C bus control register I C bus status register I C bus data register I 2C bus mode register Slave address register Second slave address register 1 I 2C bus control register I C bus status register I C bus data register I 2C bus mode register Slave address register Second slave address register Common Serial/timer control register DDC switch register Module stop control register
2 2 2 2
Abbreviation ICCR0 ICSR0 ICDR0 ICMR0 SAR0 SARX0 ICCR1 ICSR1 ICDR1 ICMR1 SAR1 SARX1 STCR DDCSWR MSTPCRH MSTPCRL
R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W
Initial Value H'01 H'00 -- H'00 H'00 H'01 H'01 H'00 -- H'00 H'00 H'01 H'00 H'0F H'3F H'FF
Address* 1 H'FFD8 H'FFD9 H'FFDE * 2 H'FFDF* 2 H'FFDF* 2 H'FFDE * 2 H'FF88 H'FF89 H'FF8E* 2 H'FF8F * 2 H'FF8F * 2 H'FF8E* 2 H'FFC3 H'FEE6 H'FF86 H'FF87
Notes: *1 Lower 16 bits of the address. *2 The register that can be written or read depends on the ICE bit in the I 2C bus control register. The slave address register can be accessed when ICE = 0, and the I2C bus mode register can be accessed when ICE = 1. The I 2C bus interface registers are assigned to the same addresses as other registers. Register selection is performed by means of the IICE bit in the serial/timer control register (STCR).
5
16.2
16.2.1
Bit
Register Descriptions
I2C Bus Data Register (ICDR)
7 ICDR7 -- R/W 6 ICDR6 -- R/W 5 ICDR5 -- R/W 4 ICDR4 -- R/W 3 ICDR3 -- R/W 2 ICDR2 -- R/W 1 ICDR1 -- R/W 0 ICDR0 -- R/W
Initial value Read/Write
* ICDRR
Bit Initial value Read/Write 7 -- R 6 -- R 5 -- R 4 -- R 3 -- R 2 -- R 1 -- R 0 -- R
ICDRR7 ICDRR6 ICDRR5 ICDRR4 ICDRR3 ICDRR2 ICDRR1 ICDRR0
* ICDRS
Bit Initial value Read/Write 7 -- -- 6 -- -- 5 -- -- 4 -- -- 3 -- -- 2 -- -- 1 -- -- 0 -- --
ICDRS7 ICDRS6 ICDRR5 ICDRS4 ICDRS3 ICDRS2 ICDRS1 ICDRS0
* ICDRT
Bit Initial value Read/Write 7 -- W 6 -- W 5 -- W 4 -- W 3 -- W 2 -- W 1 -- W 0 -- W
ICDRT7 ICDRT6 ICDRT5 ICDRT4 ICDRT3 ICDRT2 ICDRT1 ICDRT0
* TDRE, RDRF (internal flags)
Bit Initial value Read/Write -- TDRE 0 -- -- RDRF 0 --
6
ICDR is an 8-bit readable/writable register that is used as a transmit data register when transmitting and a receive data register when receiving. ICDR is divided internally into a shift register (ICDRS), receive buffer (ICDRR), and transmit buffer (ICDRT). ICDRS cannot be read or written by the CPU, ICDRR is read-only, and ICDRT is write-only. Data transfers among the three registers are performed automatically in coordination with changes in the bus state, and affect the status of internal flags such as TDRE and RDRF. If IIC is in transmit mode and the next data is in ICDRT (the TDRE flag is 0) following transmission/reception of one frame of data using ICDRS, data is transferred automatically from ICDRT to ICDRS. If IIC is in receive mode and no previous data remains in ICDRR (the RDRF flag is 0) following transmission/reception of one frame of data using ICDRS, data is transferred automatically from ICDRS to ICDRR. If the number of bits in a frame, excluding the acknowledge bit, is less than 8, transmit data and receive data are stored differently. Transmit data should be written justified toward the MSB side when MLS = 0, and toward the LSB side when MLS = 1. Receive data bits read from the LSB side should be treated as valid when MLS = 0, and bits read from the MSB side when MLS = 1. ICDR is assigned to the same address as SARX, and can be written and read only when the ICE bit is set to 1 in ICCR. The value of ICDR is undefined after a reset. The TDRE and RDRF flags are set and cleared under the conditions shown below. Setting the TDRE and RDRF flags affects the status of the interrupt flags.
7
TDRE 0
Description The next transmit data is in ICDR (ICDRT), or transmission cannot be started [Clearing conditions] * * * * When transmit data is written in ICDR (ICDRT) in transmit mode (TRS = 1) When a stop condition is detected in the bus line state after a stop condition is issued with the I 2C bus format or serial format selected When a stop condition is detected with the I 2C bus format selected In receive mode (TRS = 0) (A 0 write to TRS during transfer is valid after reception of a frame containing an acknowledge bit) (Initial value)
1
The next transmit data can be written in ICDR (ICDRT) [Setting conditions] * In transmit mode (TRS = 1), when a start condition is detected in the bus line state after a start condition is issued in master mode with the I 2C bus format or serial format selected At the first transmit mode setting (TRS = 1) (first transmit mode setting only) after the mode is switched from I 2C bus mode to formatless mode When data is transferred from ICDRT to ICDRS (Data transfer from ICDRT to ICDRS when TRS = 1 and TDRE = 0, and ICDRS is empty) * When detecting a start condition and then switching from slave receive mode (TRS = 0) state to transmit mode (TRS = 1) (first transmit mode switching only).
* *
RDRF 0
Description The data in ICDR (ICDRR) is invalid [Clearing condition] When ICDR (ICDRR) receive data is read in receive mode (Initial value)
1
The ICDR (ICDRR) receive data can be read [Setting condition] When data is transferred from ICDRS to ICDRR (Data transfer from ICDRS to ICDRR in case of normal termination with TRS = 0 and RDRF = 0)
8
16.2.2
Bit
Slave Address Register (SAR)
7 SVA6 0 R/W 6 SVA5 0 R/W 5 SVA4 0 R/W 4 SVA3 0 R/W 3 SVA2 0 R/W 2 SVA1 0 R/W 1 SVA0 0 R/W 0 FS 0 R/W
Initial value Read/Write
SAR is an 8-bit readable/writable register that stores the slave address and selects the communication format. When the chip is in slave mode (and the addressing format is selected), if the upper 7 bits of SAR match the upper 7 bits of the first frame received after a start condition, the chip operates as the slave device specified by the master device. SAR is assigned to the same address as ICMR, and can be written and read only when the ICE bit is cleared to 0 in ICCR. SAR is initialized to H'00 by a reset and in hardware standby mode. Bits 7 to 1--Slave Address (SVA6 to SVA0): Set a unique address in bits SVA6 to SVA0, differing from the addresses of other slave devices connected to the I2C bus. Bit 0--Format Select (FS): Used together with the FSX bit in SARX and the SW bit in DDCSWR to select the communication format. * I2C bus format: addressing format with acknowledge bit * Synchronous serial format: non-addressing format without acknowledge bit, for master mode only * Formatless mode (channel 0 only): non-addressing format with or without acknowledge bit, slave mode only, start/stop conditions not detected The FS bit also specifies whether or not SAR slave address recognition is performed in slave mode.
9
DDCSWR Bit 6 SW 0
SAR Bit 0 FS 0
SARX Bit 0 FSX 0 Operating Mode I 2C bus format * 1
2
SAR and SARX slave addresses recognized (Initial value)
I C bus format * * SAR slave address recognized SARX slave address ignored
1
0
I C bus format * * SAR slave address ignored SARX slave address recognized
2
1
Synchronous serial format * SAR and SARX slave addresses ignored
1
0 0 1 1
0 1 0 1
Formatless mode (start/stop conditions not detected) * Acknowledge bit used
Formatless mode* (start/stop conditions not detected) * No acknowledge bit
Note: * Do not set this mode when automatic switching to the I 2C bus format is performed by means of the DDCSWR setting.
16.2.3
Bit
Second Slave Address Register (SARX)
7 SVAX6 0 R/W 6 SVAX5 0 R/W 5 SVAX4 0 R/W 4 SVAX3 0 R/W 3 SVAX2 0 R/W 2 SVAX1 0 R/W 1 SVAX0 0 R/W 0 FSX 1 R/W
Initial value Read/Write
SARX is an 8-bit readable/writable register that stores the second slave address and selects the communication format. When the chip is in slave mode (and the addressing format is selected), if the upper 7 bits of SARX match the upper 7 bits of the first frame received after a start condition, the chip operates as the slave device specified by the master device. SARX is assigned to the same address as ICDR, and can be written and read only when the ICE bit is cleared to 0 in ICCR. SARX is initialized to H'01 by a reset and in hardware standby mode. Bits 7 to 1--Second Slave Address (SVAX6 to SVAX0): Set a unique address in bits SVAX6 to SVAX0, differing from the addresses of other slave devices connected to the I2C bus.
10
Bit 0--Format Select X (FSX): Used together with the FS bit in SAR and the SW bit in DDCSWR to select the communication format. * I2C bus format: addressing format with acknowledge bit * Synchronous serial format: non-addressing format without acknowledge bit, for master mode only * Formatless mode: non-addressing format with or without acknowledge bit, slave mode only, start/stop conditions not detected The FSX bit also specifies whether or not SARX slave address recognition is performed in slave mode. For details, see the description of the FS bit in SAR. 16.2.4
Bit Initial value Read/Write
I2C Bus Mode Register (ICMR)
7 MLS 0 R/W 6 WAIT 0 R/W 5 CKS2 0 R/W 4 CKS1 0 R/W 3 CKS0 0 R/W 2 BC2 0 R/W 1 BC1 0 R/W 0 BC0 0 R/W
ICMR is an 8-bit readable/writable register that selects whether the MSB or LSB is transferred first, performs master mode wait control, and selects the master mode transfer clock frequency and the transfer bit count. ICMR is assigned to the same address as SAR. ICMR can be written and read only when the ICE bit is set to 1 in ICCR. ICMR is initialized to H'00 by a reset and in hardware standby mode. Bit 7--MSB-First/LSB-First Select (MLS): Selects whether data is transferred MSB-first or LSB-first. If the number of bits in a frame, excluding the acknowledge bit, is less than 8, transmit data and receive data are stored differently. Transmit data should be written justified toward the MSB side when MLS = 0, and toward the LSB side when MLS = 1. Receive data bits read from the LSB side should be treated as valid when MLS = 0, and bits read from the MSB side when MLS = 1. Do not set this bit to 1 when the I 2C bus format is used.
Bit 7 MLS 0 1 Description MSB-first LSB-first (Initial value)
11
Bit 6--Wait Insertion Bit (WAIT): Selects whether to insert a wait between the transfer of data and the acknowledge bit, in master mode with the I2C bus format. When WAIT is set to 1, after the fall of the clock for the final data bit, the IRIC flag is set to 1 in ICCR, and a wait state begins (with SCL at the low level). When the IRIC flag is cleared to 0 in ICCR, the wait ends and the acknowledge bit is transferred. If WAIT is cleared to 0, data and acknowledge bits are transferred consecutively with no wait inserted. The IRIC flag in ICCR is set to 1 on completion of the acknowledge bit transfer, regardless of the WAIT setting. The setting of this bit is invalid in slave mode.
Bit 6 WAIT 0 1 Description Data and acknowledge bits transferred consecutively Wait inserted between data and acknowledge bits (Initial value)
12
Bits 5 to 3--Serial Clock Select (CKS2 to CKS0): These bits, together with the IICX1 (channel 1) or IICX0 (channel 0) bit in the STCR register, select the serial clock frequency in master mode. They should be set according to the required transfer rate.
STCR Bit 5 or 6 Bit 5 Bit 4 Bit 3 IICX 0 CKS2 CKS1 CKS0 Clock 0 0 0 1 1 0 1 1 0 0 1 1 0 1 1 0 0 0 1 1 0 1 1 0 0 1 1 0 1 o/28 o/40 o/48 o/64 o/80 o/100 o/112 o/128 o/56 o/80 o/96 o/128 o/160 o/200 o/224 o/256 o= 5 MHz 179 kHz 125 kHz 104 kHz 78.1 kHz 62.5 kHz 50.0 kHz 44.6 kHz 39.1 kHz 89.3 kHz 62.5 kHz 52.1 kHz 39.1 kHz 31.3 kHz 25.0 kHz 22.3 kHz 19.5 kHz o= 8 MHz 286 kHz 200 kHz 167 kHz 125 kHz 100 kHz 80.0 kHz 71.4 kHz 62.5 kHz 143 kHz 100 kHz 83.3 kHz 62.5 kHz 50.0 kHz 40.0 kHz 35.7 kHz 31.3 kHz Transfer Rate o= 10 MHz 357 kHz 250 kHz 208 kHz 156 kHz 125 kHz 100 kHz 89.3 kHz 78.1 kHz 179 kHz 125 kHz 104 kHz 78.1 kHz 62.5 kHz 50.0 kHz 44.6 kHz 39.1 kHz o= 16 MHz 571 kHz* 400 kHz 333 kHz 250 kHz 200 kHz 160 kHz 143 kHz 125 kHz 286 kHz 200 kHz 167 kHz 125 kHz 100 kHz 80.0 kHz 71.4 kHz 62.5 kHz o= 20 MHz 714 kHz* 500 kHz* 417 kHz* 313 kHz 250 kHz 200 kHz 179 kHz 156 kHz 357 kHz 250 kHz 208 kHz 156 kHz 125 kHz 100 kHz 89.3 kHz 78.1 kHz
Note: * Outside the I2C bus interface specification range (normal mode: max. 100 kHz; high-speed mode: max. 400 kHz).
13
Bits 2 to 0--Bit Counter (BC2 to BC0): Bits BC2 to BC0 specify the number of bits to be transferred next. With the I 2C bus format (when the FS bit in SAR or the FSX bit in SARX is 0), the data is transferred with one addition acknowledge bit. Bit BC2 to BC0 settings should be made during an interval between transfer frames. If bits BC2 to BC0 are set to a value other than 000, the setting should be made while the SCL line is low. The bit counter is initialized to 000 by a reset and when a start condition is detected. The value returns to 000 at the end of a data transfer, including the acknowledge bit.
Bit 2 BC2 0 Bit 1 BC1 0 Bit 0 BC0 0 1 1 0 1 1 0 0 1 1 0 1 Bits/Frame Synchronous Serial Format 8 1 2 3 4 5 6 7 I 2C Bus Format 9 2 3 4 5 6 7 8 (Initial value)
16.2.5
Bit
I2C Bus Control Register (ICCR)
7 ICE 0 R/W 6 IEIC 0 R/W 5 MST 0 R/W 4 TRS 0 R/W 3 ACKE 0 R/W 2 BBSY 0 R/W 1 IRIC 0 R/(W)* 0 SCP 1 W
Initial value Read/Write
Note: * Only 0 can be written, to clear the flag.
ICCR is an 8-bit readable/writable register that enables or disables the I2C bus interface, enables or disables interrupts, selects master or slave mode and transmission or reception, enables or disables acknowledgement, confirms the I2C bus interface bus status, issues start/stop conditions, and performs interrupt flag confirmation. ICCR is initialized to H'01 by a reset and in hardware standby mode.
14
Bit 7--I2C Bus Interface Enable (ICE): Selects whether or not the I2C bus interface is to be used. When ICE is set to 1, port pins function as SCL and SDA input/output pins and transfer operations are enabled. When ICE is cleared to 0, the I2C bus interface module is halted and its internal states are cleared. The SAR and SARX registers can be accessed when ICE is 0. The ICMR and ICDR registers can be accessed when ICE is 1.
Bit 7 ICE 0 Description I 2C bus interface module disabled, with SCL and SDA signal pins set to port function I 2C bus interface module internal states initialized SAR and SARX can be accessed 1 I 2C bus interface module enabled for transfer operations (pins SCL and SCA are driving the bus) ICMR and ICDR can be accessed (Initial value)
Bit 6--I2C Bus Interface Interrupt Enable (IEIC): Enables or disables interrupts from the I2C bus interface to the CPU.
Bit 6 IEIC 0 1 Description Interrupts disabled Interrupts enabled (Initial value)
Bit 5--Master/Slave Select (MST) Bit 4--Transmit/Receive Select (TRS) MST selects whether the I2C bus interface operates in master mode or slave mode. TRS selects whether the I2C bus interface operates in transmit mode or receive mode. In master mode with the I2C bus format, when arbitration is lost, MST and TRS are both reset by hardware, causing a transition to slave receive mode. In slave receive mode with the addressing format (FS = 0 or FSX = 0), hardware automatically selects transmit or receive mode according to the R/W bit in the first frame after a start condition. Modification of the TRS bit during transfer is deferred until transfer of the frame containing the acknowledge bit is completed, and the changeover is made after completion of the transfer. MST and TRS select the operating mode as follows.
15
Bit 5 MST 0
Bit 4 TRS 0 1 Operating Mode Slave receive mode Slave transmit mode Master receive mode Master transmit mode (Initial value)
1
0 1
Bit 5 MST 0 Description Slave mode [Clearing conditions] 1. When 0 is written by software 2. When bus arbitration is lost after transmission is started in I 2C bus format master mode 1 Master mode [Setting conditions] 1. When 1 is written by software (in cases other than clearing condition 2) 2. When 1 is written in MST after reading MST = 0 (in case of clearing condition 2) (Initial value)
Bit 4 TRS 0 Description Receive mode [Clearing conditions] 1. When 0 is written by software (in cases other than setting condition 3) 2. When 0 is written in TRS after reading TRS = 1 (in case of clearing condition 3) 3. When bus arbitration is lost after transmission is started in I 2C bus format master mode 4. When the SW bit in DDCSWR changes from 1 to 0 1 Transmit mode [Setting conditions] 1. When 1 is written by software (in cases other than clearing conditions 3 and 4) 2. When 1 is written in TRS after reading TRS = 0 (in case of clearing conditions 3 and 4) 3. When a 1 is received as the R/W bit of the first frame in I2C bus format slave mode (Initial value)
16
Bit 3--Acknowledge Bit Judgement Selection (ACKE): Specifies whether the value of the acknowledge bit returned from the receiving device when using the I2C bus format is to be ignored and continuous transfer is performed, or transfer is to be aborted and error handling, etc., performed if the acknowledge bit is 1. When the ACKE bit is 0, the value of the received acknowledge bit is not indicated by the ACKB bit, which is always 0. In the H8S/2128 Series, the DTC can be used to perform continuous transfer. The DTC is activated when the IRTR interrupt flag is set to 1 (IRTR is one of two interrupt flags, the other being IRIC). When the ACKE bit is 0, the TDRE, IRIC, and IRTR flags are set on completion of data transmission, regardless of the value of the acknowledge bit. When the ACKE bit is 1, the TDRE, IRIC, and IRTR flags are set on completion of data transmission when the acknowledge bit is 0, and the IRIC flag alone is set on completion of data transmission when the acknowledge bit is 1. When the DTC is activated, the TDRE, IRIC, and IRTR flags are cleared to 0 after the specified number of data transfers have been executed. Consequently, interrupts are not generated during continuous data transfer, but if data transmission is completed with a 1 acknowledge bit when the ACKE bit is set to 1, the DTC is not activated and an interrupt is generated, if enabled. Depending on the receiving device, the acknowledge bit may be significant, in indicating completion of processing of the received data, for instance, or may be fixed at 1 and have no significance.
Bit 3 ACKE 0 1 Description The value of the acknowledge bit is ignored, and continuous transfer is performed If the acknowledge bit is 1, continuous transfer is interrupted (Initial value)
Bit 2--Bus Busy (BBSY): The BBSY flag can be read to check whether the I2C bus (SCL, SDA) is busy or free. In master mode, this bit is also used to issue start and stop conditions. A high-to-low transition of SDA while SCL is high is recognized as a start condition, setting BBSY to 1. A low-to-high transition of SDA while SCL is high is recognized as a stop condition, clearing BBSY to 0. To issue a start condition, use a MOV instruction to write 1 in BBSY and 0 in SCP. A retransmit start condition is issued in the same way. To issue a stop condition, use a MOV instruction to write 0 in BBSY and 0 in SCP. It is not possible to write to BBSY in slave mode; the I2C bus interface must be set to master transmit mode before issuing a start condition. MST and TRS should both be set to 1 before writing 1 in BBSY and 0 in SCP.
17
Bit 2 BBSY 0 Description Bus is free [Clearing condition] When a stop condition is detected 1 Bus is busy [Setting condition] When a start condition is detected (Initial value)
Bit 1--I2C Bus Interface Interrupt Request Flag (IRIC): Indicates that the I2C bus interface has issued an interrupt request to the CPU. IRIC is set to 1 at the end of a data transfer, when a slave address or general call address is detected in slave receive mode, when bus arbitration is lost in master transmit mode, and when a stop condition is detected. IRIC is set at different times depending on the FS bit in SAR and the WAIT bit in ICMR. See section 16.3.6, IRIC Setting Timing and SCL Control. The conditions under which IRIC is set also differ depending on the setting of the ACKE bit in ICCR. IRIC is cleared by reading IRIC after it has been set to 1, then writing 0 in IRIC. When the DTC is used, IRIC is cleared automatically and transfer can be performed continuously without CPU intervention.
18
Bit 1 IRIC 0 Description Waiting for transfer, or transfer in progress (Initial value) [Clearing conditions] 1. When 0 is written in IRIC after reading IRIC = 1 2. When ICDR is written or read by the DTC (When the TDRE or RDRF flag is cleared to 0) (This is not always a clearing condition; see the description of DTC operation for details) Interrupt requested [Setting conditions] * I 2C bus format master mode 1. When a start condition is detected in the bus line state after a start condition is issued (when the TDRE flag is set to 1 because of first frame transmission) 2. When a wait is inserted between the data and acknowledge bit when WAIT = 1 3. At the end of data transfer (at the rise of the 9th transmit/receive clock pulse when no wait is inserted, (WAIT=0) and, when a wait is inserted (WAIT=1), at the fall of the 8th transmit/receive clock pulse) 4. When a slave address is received after bus arbitration is lost (when the AL flag is set to 1) 5. When 1 is received as the acknowledge bit when the ACKE bit is 1 (when the ACKB bit is set to 1) * I 2C bus format slave mode 1. When the slave address (SVA, SVAX) matches (when the AAS and AASX flags are set to 1) and at the end of data transfer up to the subsequent retransmission start condition or stop condition detection (when the TDRE or RDRF flag is set to 1) 2. When the general call address is detected (when FS = 0 and the ADZ flag is set to 1) and at the end of data transfer up to the subsequent retransmission start condition or stop condition detection (when the TDRE or RDRF flag is set to 1) 3. When 1 is received as the acknowledge bit when the ACKE bit is 1 (when the ACKB bit is set to 1) 4. When a stop condition is detected (when the STOP or ESTP flag is set to 1) * Synchronous serial format, and formatless mode 1. At the end of data transfer (when the TDRE or RDRF flag is set to 1) 2. When a start condition is detected with serial format selected 3. When the SW bit is set to 1 in DDCSWR Except the above, when the conditions to set the TDRE or RDRF internal flag to 1 is generated
1
19
When, with the I2C bus format selected, IRIC is set to 1 and an interrupt is generated, other flags must be checked in order to identify the source that set IRIC to 1. Although each source has a corresponding flag, caution is needed at the end of a transfer. When the TDRE or RDRF internal flag is set, the readable IRTR flag may or may not be set. The IRTR flag (the DTC start request flag) is not set at the end of a data transfer up to detection of a retransmission start condition or stop condition after a slave address (SVA) or general call address match in I 2C bus format slave mode. Even when the IRIC flag and IRTR flag are set, the TDRE or RDRF internal flag may not be set. The IRIC and IRTR flags are not cleared at the end of the specified number of transfers in continuous transfer using the DTC. The TDRE or RDRF flag is cleared, however, since the specified number of ICDR reads or writes have been completed. Table 16.3 shows the relationship between the flags and the transfer states. Table 16.3 Flags and Transfer States
MST TRS BBSY ESTP STOP IRTR 1/0 1 1 1 1 0 0 0 0 0 1/0 1 1 1/0 1/0 0 0 0 0 1/0 0 0 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 AASX AL 0 0 0 0 0 1/0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 AAS 0 0 0 0 0 1/0 1 1 0 0 ADZ 0 0 0 0 0 1/0 0 1 0 0 ACKB State 0 0 0 0/1 0/1 0 0 0 0 0/1 Idle state (flag clearing required) Start condition issuance Start condition established Master mode wait Master mode transmit/receive end Arbitration lost SAR match by first frame in slave mode General call address match SARX match Slave mode transmit/receive end (except after SARX match) Slave mode transmit/receive end (after SARX match) Stop condition detected
0 0 0
1/0 1 1/0
1 1 0
0 0 1/0
0 0 1/0
1 0 0
1 1 0
0 0 0
0 0 0
0 0 0
0 1 0/1
20
Bit 0--Start Condition/Stop Condition Prohibit (SCP): Controls the issuing of start and stop conditions in master mode. To issue a start condition, write 1 in BBSY and 0 in SCP. A retransmit start condition is issued in the same way. To issue a stop condition, write 0 in BBSY and 0 in SCP. This bit is always read as 1. If 1 is written, the data is not stored.
Bit 0 SCP 0 1 Description Writing 0 issues a start or stop condition, in combination with the BBSY flag Reading always returns a value of 1 Writing is ignored (Initial value)
16.2.6
Bit
I2C Bus Status Register (ICSR)
7 ESTP 0 R/(W)* 6 STOP 0 R/(W)* 5 IRTR 0 R/(W)* 4 AASX 0 R/(W)* 3 AL 0 R/(W)* 2 AAS 0 R/(W)* 1 ADZ 0 R/(W)* 0 ACKB 0 R/W
Initial value Read/Write
Note: * Only 0 can be written, to clear the flags.
ICSR is an 8-bit readable/writable register that performs flag confirmation and acknowledge confirmation and control. ICSR is initialized to H'00 by a reset and in hardware standby mode. Bit 7--Error Stop Condition Detection Flag (ESTP): Indicates that a stop condition has been detected during frame transfer in I2C bus format slave mode.
21
Bit 7 ESTP 0 Description No error stop condition [Clearing conditions] 1. When 0 is written in ESTP after reading ESTP = 1 2. When the IRIC flag is cleared to 0 1 * In I 2C bus format slave mode Error stop condition detected [Setting condition] When a stop condition is detected during frame transfer * In other modes No meaning (Initial value)
Bit 6--Normal Stop Condition Detection Flag (STOP): Indicates that a stop condition has been detected after completion of frame transfer in I2C bus format slave mode.
Bit 6 STOP 0 Description No normal stop condition [Clearing conditions] 1. When 0 is written in STOP after reading STOP = 1 2. When the IRIC flag is cleared to 0 1 * In I 2C bus format slave mode Normal stop condition detected [Setting condition] When a stop condition is detected after completion of frame transfer * In other modes No meaning (Initial value)
Bit 5--I2C Bus Interface Continuous Transmission/Reception Interrupt Request Flag (IRTR): Indicates that the I2C bus interface has issued an interrupt request to the CPU, and the source is completion of reception/transmission of one frame in continuous transmission/reception for which DTC activation is possible. When the IRTR flag is set to 1, the IRIC flag is also set to 1 at the same time. IRTR flag setting is performed when the TDRE or RDRF flag is set to 1. IRTR is cleared by reading IRTR after it has been set to 1, then writing 0 in IRTR. IRTR is also cleared automatically when the IRIC flag is cleared to 0.
22
Bit 5 IRTR 0 Description Waiting for transfer, or transfer in progress [Clearing conditions] 1. When 0 is written in IRTR after reading IRTR = 1 2. When the IRIC flag is cleared to 0 1 Continuous transfer state [Setting condition] * * In I 2C bus interface slave mode When the TDRE or RDRF flag is set to 1 when AASX = 1 In other modes When the TDRE or RDRF flag is set to 1 (Initial value)
Bit 4--Second Slave Address Recognition Flag (AASX): In I2C bus format slave receive mode, this flag is set to 1 if the first frame following a start condition matches bits SVAX6 to SVAX0 in SARX. AASX is cleared by reading AASX after it has been set to 1, then writing 0 in AASX. AASX is also cleared automatically when a start condition is detected.
Bit 4 AASX 0 Description Second slave address not recognized [Clearing conditions] 1. When 0 is written in AASX after reading AASX = 1 2. When a start condition is detected 3. In master mode 1 Second slave address recognized [Setting condition] When the second slave address is detected in slave receive mode while FSX = 0 (Initial value)
Bit 3--Arbitration Lost (AL): This flag indicates that arbitration was lost in master mode. The I2C bus interface monitors the bus. When two or more master devices attempt to seize the bus at nearly the same time, if the I2C bus interface detects data differing from the data it sent, it sets AL to 1 to indicate that the bus has been taken by another master.
23
AL is cleared by reading AL after it has been set to 1, then writing 0 in AL. In addition, AL is reset automatically by write access to ICDR in transmit mode, or read access to ICDR in receive mode.
Bit 3 AL 0 Description Bus arbitration won [Clearing conditions] 1. When ICDR data is written (transmit mode) or read (receive mode) 2. When 0 is written in AL after reading AL = 1 1 Arbitration lost [Setting conditions] 1. If the internal SDA and SDA pin disagree at the rise of SCL in master transmit mode 2. If the internal SCL line is high at the fall of SCL in master transmit mode (Initial value)
Bit 2--Slave Address Recognition Flag (AAS): In I2C bus format slave receive mode, this flag is set to 1 if the first frame following a start condition matches bits SVA6 to SVA0 in SAR, or if the general call address (H'00) is detected. AAS is cleared by reading AAS after it has been set to 1, then writing 0 in AAS. In addition, AAS is reset automatically by write access to ICDR in transmit mode, or read access to ICDR in receive mode.
Bit 2 AAS 0 Description Slave address or general call address not recognized [Clearing conditions] 1. When ICDR data is written (transmit mode) or read (receive mode) 2. When 0 is written in AAS after reading AAS = 1 3. In master mode 1 Slave address or general call address recognized [Setting condition] When the slave address or general call address is detected in slave receive mode while FS = 0 (Initial value)
24
Bit 1--General Call Address Recognition Flag (ADZ): In I2C bus format slave receive mode, this flag is set to 1 if the first frame following a start condition is the general call address (H'00). ADZ is cleared by reading ADZ after it has been set to 1, then writing 0 in ADZ. In addition, ADZ is reset automatically by write access to ICDR in transmit mode, or read access to ICDR in receive mode.
Bit 1 ADZ 0 Description General call address not recognized [Clearing conditions] 1. When ICDR data is written (transmit mode) or read (receive mode) 2. When 0 is written in ADZ after reading ADZ = 1 3. In master mode 1 General call address recognized [Setting condition] When the general call address is detected in slave receive mode while FSX = 0 or FS = 0 (Initial value)
Bit 0--Acknowledge Bit (ACKB): Stores acknowledge data. In transmit mode, after the receiving device receives data, it returns acknowledge data, and this data is loaded into ACKB. In receive mode, after data has been received, the acknowledge data set in this bit is sent to the transmitting device. When this bit is read, in transmission (when TRS = 1), the value loaded from the bus line (returned by the receiving device) is read. In reception (when TRS = 0), the value set by internal software is read. When this bit is written to, the acknowledge data transmitted at the receipt is rewritten regardless of the TRS value. The data loaded fom the receiving device is retained, therefore take care of using bit-manipulation instructions.
Bit 0 ACKB 0 Description Receive mode: 0 is output at acknowledge output timing (Initial value)
Transmit mode: Indicates that the receiving device has acknowledged the data (signal is 0) 1 Receive mode: 1 is output at acknowledge output timing Transmit mode: Indicates that the receiving device has not acknowledged the data (signal is 1)
25
16.2.7
Bit
Serial/Timer Control Register (STCR)
7 -- 0 R/W 6 IICX1 0 R/W 5 IICX0 0 R/W 4 IICE 0 R/W 3 FLSHE 0 R/W 2 -- 0 R/W 1 ICKS1 0 R/W 0 ICKS0 0 R/W
Initial value Read/Write
STCR is an 8-bit readable/writable register that controls register access, the I2C interface operating mode (when the on-chip IIC option is included), and on-chip flash memory (F-ZTAT versions), and selects the TCNT input clock source. For details of functions not related to the I 2C bus interface, see section 3.2.4, Serial/Timer Control Register (STCR), and the descriptions of the relevant modules. If a module controlled by STCR is not used, do not write 1 to the corresponding bit. STCR is initialized to H'00 by a reset and in hardware standby mode. Bit 7--Reserved: Do not write 1 to this bit. Bit 6 and 5--I2C Transfer Select 1 and 0 (IICX1 and 0): This bit, together with bits CKS2 to CKS0 in ICMR, selects the transfer rate in master mode. For details, see section 16.2.4, I2C Bus Mode Register (ICMR). Bit 4--I2C Master Enable (IICE): Controls CPU access to the I2C bus interface data and control registers (ICCR, ICSR, ICDR/SARX, ICMR/SAR), PWMX data and control registers, and SCI control registers.
Bit 4 IICE 0 Description CPU access to I 2C bus interface data and control registers is disabled CPU access to SCI control registers is enabled 1 CPU access to I 2C bus interface data and control registers is enabled CPU access to PWMX data and control registers is enabled (Initial value)
Bit 3--Flash Memory Control Register Enable (FLSHE): Controls CPU access to the flash memory control registers, the power-down mode control registers, and the supporting module control registers. See section 3.2.4, Serial Timer Control Register (STCR), for details. Bit 2--Reserved: Do not write 1 to this bit. Bits 1 and 0--Internal Clock Source Select 1 and 0 (ICKS1, ICSK0): These bits, together with bits CKS2 to CKS0 in TCR, select the clock input to the timer counters (TCNT). For details, see section 12.2.4, Timer Control Register (TCR).
26
16.2.8
Bit
DDC Switch Register (DDCSWR)
7 SWE 0 R/W 6 SW 0 R/W 5 IE 0 R/W 4 IF 0 R/(W)*1 3 CLR3 1 W*2 2 CLR2 1 W*2 1 CLR1 1 W*2 0 CLR0 1 W*2
Initial value Read/Write
Notes: *1 Only 0 can be written, to clear the flag. *2 Always read as 1.
DDCSWR is an 8-bit readable/writable register that is used to initialize IIC and controls IIC internal latch clearance. DDCSWR is initialized to H'0F by a reset and in hardware standby mode. Bits 7--DDC Mode Switch Enable (SWE): Selects the function for automatically switching IIC channel 0 from formatless mode to the I2C bus format.
Bit 7 SWE 0 1 Description Automatic switching of IIC channel 0 from formatless mode to I 2C bus format is disabled Automatic switching of IIC channel 0 from formatless mode to I 2C bus format is enabled (Initial value)
Bits 6--DDC Mode Switch (SW): Selects either formatless mode or the I2C bus format for IIC channel 0.
Bit 6 SW 0 Description IIC channel 0 is used with the I 2C bus format [Clearing conditions] 1. When 0 is written by software 2. When a falling edge is detected on the SCL pin when SWE = 1 1 IIC channel 0 is used in formatless mode [Setting condition] When 1 is written in SW after reading SW = 0 (Initial value)
27
Bits 5--DDC Mode Switch Interrupt Enable Bit (IE): Enables or disables an interrupt request to the CPU when automatic format switching is executed for IIC channel 0.
Bit 5 IE 0 1 Description Interrupt when automatic format switching is executed is disabled Interrupt when automatic format switching is executed is enabled (Initial value)
Bits 4--DDC Mode Switch Interrupt Flag (IF): Flag that indicates an interrupt request to the CPU when automatic format switching is executed for IIC channel 0.
Bit 4 IF 0 Description No interrupt is requested when automatic format switching is executed [Clearing condition] When 0 is written in IF after reading IF = 1 1 An interrupt is requested when automatic format switching is executed [setting condition] When a falling edge is detected on the SCL pin when SWE = 1 (Initial value)
Bits 3 to 0--IIC Clear 3 to 0 (CLR3 to CLR0): These bits control initialization of the internal state of IIC0 and IIC1. These bits can only be written to; if read they will always return a value of 1. When a write operation is performed on these bits, a clear signal is generated for the internal latch circuit of the corresponding module(s), and the internal state of the IIC module(s) is initialized. The write data for these bits is not retained. To perform IIC clearance, bits CLR3 to CLR0 must be written to simultaneously using an MOV instruction. Do not use a bit manipulation instruction such as BCLR. When clearing is required again, all the bits must be written to in accordance with the setting.
28
Bit 3 CLR3 0
Bit 2 CLR2 0 1
Bit 1 CLR1 -- 0
Bit 0 CLR0 -- 0 1 Description Setting prohibited Setting prohibited IIC0 internal latch cleared IIC1 internal latch cleared IIC0 and IIC1 internal latches cleared Invalid setting
1
0 1
1
--
--
--
16.2.9
Module Stop Control Register (MSTPCR)
MSTPCRH MSTPCRL
2 1 0 7 6 5 4 3 2 1 0
Bit Initial value Read/Write
7
6
5
4
3
MSTP15 MSTP14 MSTP13 MSTP12 MSTP11 MSTP10 MSTP9 MSTP8 MSTP7 MSTP6 MSTP5 MSTP4 MSTP3 MSTP2 MSTP1 MSTP0
0
0
1
1
1
1
1
1
1
1
1
1
1
1
1
1
R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W
MSTPCR comprises two 8-bit readable/writable registers, and is used to perform module stop mode control. When the MSTP4 or MSTP3 bit is set to 1, operation of the corresponding IIC channel is halted at the end of the bus cycle, and a transition is made to module stop mode. For details, see section 21.5, Module Stop Mode. MSTPCR is initialized to H'3FFF by a reset and in hardware standby mode. It is not initialized in software standby mode. MSTPCRL Bit 4--Module Stop (MSTP4): Specifies IIC channel 0 module stop mode.
MSTPCRL Bit 4 MSTP4 0 1 Description IIC channel 0 module stop mode is cleared IIC channel 0 module stop mode is set (Initial value)
29
MSTPCRL Bit 3--Module Stop (MSTP3): Specifies IIC channel 1 module stop mode.
MSTPCRL Bit 3 MSTP3 0 1 Description IIC channel 1 module stop mode is cleared IIC channel 1 module stop mode is set (Initial value)
16.3
16.3.1
Operation
I2C Bus Data Format
The I2C bus interface has serial and I2C bus formats. The I2C bus formats are addressing formats with an acknowledge bit. These are shown in figures 16.3 (a) and (b). The first frame following a start condition always consists of 8 bits. IIC channel 0 only is capable of formatless operation, as shown in figure 16.4. The serial format is a non-addressing format with no acknowledge bit. Although start and stop conditions must be issued, this format can be used as a synchronous serial format. This is shown in figure 16.5. Figure 16.6 shows the I2C bus timing. The symbols used in figures 16.3 to 16.6 are explained in table 16.4.
30
(a) I2C bus format (FS = 0 or FSX = 0) S 1 SLA 7 1 R/W 1 A 1 DATA n A 1 m A/A 1 P 1 n: transfer bit count (n = 1 to 8) m: transfer frame count (m 1)
(b) I2C bus format (start condition retransmission, FS = 0 or FSX = 0) S 1 SLA 7 1 R/W 1 A 1 DATA n1 m1 A/A 1 S 1 SLA 7 1 R/W 1 A 1 DATA n2 m2 A/A 1 P 1
n1 and n2: transfer bit count (n1 and n2 = 1 to 8) m1 and m2: transfer frame count (m1 and m2 1)
Figure 16.3 I2C Bus Data Formats (I2C Bus Formats)
IIC0 only, FS = 0 or FSX = 0 DATA 8 1 A 1 DATA n A 1 m A/A 1 n: transfer bit count (n = 1 to 8) m: transfer frame count (m 1)
Figure 16.4 Formatless
FS = 1 and FSX = 1
S 1
DATA 8 1
DATA n m
P 1 n: transfer bit count (n = 1 to 8) m: transfer frame count (m 1)
Figure 16.5 I2C Bus Data Format (Serial Format)
SDA
SCL S
1-7 SLA
8 R/W
9 A
1-7 DATA
8
9 A
1-7 DATA
8
9 A/A P
Figure 16.6 I2C Bus Timing
31
Table 16.4 I2C Bus Data Format Symbols
Legend S SLA R/W A DATA P Start condition. The master device drives SDA from high to low while SCL is high Slave address, by which the master device selects a slave device Indicates the direction of data transfer: from the slave device to the master device when R/W is 1, or from the master device to the slave device when R/W is 0 Acknowledge. The receiving device (the slave in master transmit mode, or the master in master receive mode) drives SDA low to acknowledge a transfer Transferred data. The bit length is set by bits BC2 to BC0 in ICMR. The MSB-first or LSB-first format is selected by bit MLS in ICMR Stop condition. The master device drives SDA from low to high while SCL is high
16.3.2
Master Transmit Operation
In I2C bus format master transmit mode, the master device outputs the transmit clock and transmit data, and the slave device returns an acknowledge signal. The transmission procedure and operations by which data is sequentially transmitted in synchronization with ICDR write operations, are described below. (1) Set the ICE bit in ICCR to l. Set bits MLS, WAIT, and CKS2 to CKS0 in ICMR, and bit IICX in STCR, according to the operation mode. (2) Read the BBSY flag to confirm that the bus is free. (3) Set the MST and TRS bits to 1 in ICCR to select master transmit mode. (4) Write 1 to BBSY and 0 to SCP. This switches SDA from high to low when SCL is high, and generates the start condition. (5) When the start condition is generated, the IRIC and IRTR flags are set to 1. If the IEIC bit in ICCR has been set to l, an interrupt request is sent to the CPU. (6) Write data to ICDR (slave address + R/W) With the I 2C bus format (when the FS bit in SAR or the FSX bit in SARX is 0), the first frame data following the start condition indicates the 7-bit slave address and transmit/receive direction. Then clear the IRIC flag to indicate the end of transfer. Writing to ICDR and clearing of the IRIC flag must be executed continuously, so that no interrupt is inserted. If a period of time that is equal to transfer one byte has elapsed by the time the IRlC flag is cleared, the end of transfer cannot be identified.
32
The master device sequentially sends the transmit clock and the data written to ICDR with the timing shown in figure 16.7. The selected slave device (i.e. , the slave device with the matching slave address) drives SDA low at the 9th transmit clock pulse and returns an acknowledge signal. (7) When one frame of data has been transmitted, the IRIC flag is set to 1 at the rise of the 9th transmit clock pulse. After one frame has been transmitted, SCL is automatically fixed low in synchronization with the internal clock until the next transmit data is written. (8) Read the ACKB bit to confirm that ACKB is 0. When the slave device has not returned an acknowledge signal and ACKB remains 1, execute the transmit end processing described in step (12) and perform transmit operation again. (9) Write the next data to be transmitted in ICDR. To indicate the end of data transfer, clear the IRIC flag to 0. As described in step (6) above, writing to ICDR and clearing of the IRIC flag must be executed continuously so that no interrupt is inserted. The next frame is transmitted in synchronization with the internal clock. (10) When one frame of data has been transmitted, the IRIC flag is set to 1 at the rise of the 9th transmit clock pulse. After one frame has been transmitted, SCL is automatically fixed low in synchronization with the internal clock until the next transmit data is written. (11) Read the ACKB bit of ICSR. Confirm that the slave device has returned an acknowledge signal and ACKB is 0. When more data is to be transmitted, return to step (9) to execute next transmit operation. If the slave device has not returned an acknowledge signal and ACKB is 1, execute the transmit end processing described in step (12). (12) Clear the IRIC flag to 0. Write BBSY and SCP of ICCR to 0. By doing so, SDA is changed from low to high while SCL is high and the transmit stop condition is generated.
33
Start condition generation SCL (master output) SDA (master output) SDA (slave output) IRIC IRTR ICDR Note: Data write timing in ICDR ICDR Writing prohibited [5] 1 bit 7 2 bit 6 3 bit 5 4 bit 4 5 bit 3 6 bit 2 7 bit 1 8 bit 0 R/W [7] A 9 1 bit 7 2 bit 6
Slave address
Data 1
address + R/W
Data 1
ICDR Writing enable
User processing [4] Write BBSY = 1 and SCP = 0 (start condition issuance)
[6] ICDR write
[6] IRIC clear
[9] ICDR write [9] IRIC clear
Figure 16.7 Example of Master Transmit Mode Operation Timing (MLS = WAIT = 0) 16.3.3 Master Receive Operation
In master receive mode, the master device outputs the receive clock, receives data, and returns an acknowledge signal. The slave device transmits data. The receive procedure and operations by which data is sequentially received in synchronization with ICDR read operations, are described below. (1) Clear the TRS bit of ICCR to 0 and switch from transmit mode to receive mode. Set the WAIT bit to 1 and clear the ACKB bit of ICSR to 0 (acknowledge data setting). (2) When ICDR is read (dummy data read), reception is started and the receive clock is output, and data is received, in synchronization with the internal clock. To indicate the wait, clear the IRIC flag to 0. Reading from ICDR and clearing of the IRIC f1ag must be executed continuously so that no interrupt is inserted. If a period of time that is equal to transfer one byte has elapsed by the time the IRIC flag is cleared, the end of transfer cannot be identified.
34
(3) The IRIC flag is set to 1 at the fall of the 8th clock of a one-frame reception clock. At this point, if the IEIC bit of ICCR is set to 1, an interrupt request is generated to the CPU. SCL is automatically fixed low in synchronization with the internal clock until the IRIC flag is cleared. If the first frame is the final reception frame, execute the end processing as described in (l0). (4) Clear the IRIC flag to 0 to release from the wait state. The master device outputs the 9th receive clock pulse, sets SDA to low, and returns an acknowledge signal. (5) When one frame of data has been transmitted, the IRIC and IRTR flags are set to 1 at the rise of the 9th transmit clock pulse. The master device continues to output the receive clock for the next receive data. (6) Read the ICDR receive data. (7) Clear the IRIC flag to indicate the next wait. From clearing of the IRIC flag to completion of data transmission as described in steps (5), (6), and (7), must be performed within the time taken to transfer one byte, because releasing of the wait state as described in step (4) (or (9)). (8) The IRIC flag is set to 1 at the fall of the 8th one-frame reception clock pulse. SCL is automatically fixed low in synchronization with the internal clock until the IRIC flag is cleared. If this frame is the final reception frame, execute the end processing as described in (l0). (9) Clear the IRIC flag to 0 to release from the wait state. The master device outputs the 9th reception clock pulse, sets SDA to low, and returns an acknowledge signal. By repeating steps (5) to (9) above, more data can be received. (l0) Set the ACKB bit of ICSR to 1 and set the acknowledge data for the final reception. Set the TRS bit of ICCR to 1 to change receive mode to transmit mode. (11) Clear the IRIC flag to release from the wait state. (12) When one frame of data has been received, the IRIC flag is set to 1 at the rise of the 9th reception clock pulse. (13) Clear the WAIT bit of ICMR to 0 to cancel wait mode. Read the ICDR receive data and clear the IRIC flag to 0. Clear the IRIC flag only when WAIT = 0. (If the stop-condition generation command is executed after clearing the IRIC flag to 0 and then clearing the WAIT bit to 0, the SDA line is fixed low and the stop condition cannot be generated.) (14) Write 0 to BBSY and SCP. This changes SDA from low to high when SCL is high, and generates the stop condition.
35
Master transmit mode
Master receive mode
SCL (master output) SDA (slave output)
9 A
1 Bit7
2 Bit6
3 Bit5
4 Bit4
5 Bit3
6 Bit2
7 Bit1
8 Bit0 [3] A
9
1 Bit7
2 Bit6
3 Bit5
4 Bit4
5 Bit3
Data 1 SDA (master output) IRIC IRTR ICDR
[5]
Data 2
Data 1
User processing
[2] IRIC clear [1] TRS cleared to 0 [2] ICDR read (dummy read) WAIT set to 1 ACKB cleared to 0
[4] IRIC clear
[6] ICDR read (Data 1)
[7] IRIC clear
Figure 16.8 (a) Example of Master Receive Mode Operation Timing (MLS = ACKB = 0, WAIT = 1)
SCL (master output)
8
9
1 Bit7
2 Bit6
3 Bit5
4 Bit4
5 Bit3
6 Bit2
7 Bit1
8 Bit0 [8] A
9
1 Bit7
2 Bit6 Data 4
SDA Bit0 (slave output) Data 2 SDA (master output) IRIC IRTR ICDR
[8] A
[5]
Data 3
[5]
Data 1
Data 2
Data 3
User processing
[9] IRIC clear
[6] ICDR read (Data 2)
[7] IRIC clear
[9] IRIC Clear
[6] ICDR read (Data 3)
[7] IRIC clear
Figure 16.8 (b) Example of Master Receive Mode Operation Timing (MLS = ACKB = 0, WAIT = 1)
36
16.3.4
Slave Receive Operation
In slave receive mode, the master device outputs the transmit clock and transmit data, and the slave device returns an acknowledge signal. The reception procedure and operations in slave receive mode are described below. [1] Set the ICE bit in ICCR to 1. Set the MLS bit in ICMR and the MST and TRS bits in ICCR according to the operating mode. [2] When the start condition output by the master device is detected, the BBSY flag in ICCR is set to 1. [3] When the slave address matches in the first frame following the start condition, the device operates as the slave device specified by the master device. If the 8th data bit (R/W) is 0, the TRS bit in ICCR remains cleared to 0, and slave receive operation is performed. [4] At the 9th clock pulse of the receive frame, the slave device drives SDA low and returns an acknowledge signal. At the same time, the IRIC flag in ICCR is set to 1. If the IEIC bit in ICCR has been set to 1, an interrupt request is sent to the CPU. If the RDRF internal flag has been cleared to 0, it is set to 1, and the receive operation continues. If the RDRF internal flag has been set to 1, the slave device drives SCL low from the fall of the receive clock until data is read into ICDR. [5] Read ICDR and clear the IRIC flag in ICCR to 0. The RDRF flag is cleared to 0. Receive operations can be performed continuously by repeating steps [4] and [5]. When SDA is changed from low to high when SCL is high, and the stop condition is detected, the BBSY flag in ICCR is cleared to 0.
37
Start condition generation SCL (master output) SCL (slave output) SDA (master output) Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 R/W [4] A Bit 7 Bit 6 Data 1 1 2 3 4 5 6 7 8 9 1 2
Slave address SDA (slave output) RDRF
IRIC
Interrupt request generation
ICDRS
Address + R/W
ICDRR
Address + R/W
User processing
[5] ICDR read
[5] IRIC clear
Figure 16.9 Example of Slave Receive Mode Operation Timing (1) (MLS = ACKB = 0)
38
SCL (master output) SCL (slave output) SDA (master output)
7
8
9
1
2
3
4
5
6
7
8
9
Bit 1 Data 1
Bit 0 [4]
Bit 7
Bit 6
Bit 5
Bit 4 Data 2
Bit 3
Bit 2
Bit 1
Bit 0 [4]
SDA (slave output)
A
A
RDRF
IRIC
Interrupt request generation Data 1
Interrupt request generation Data 2
ICDRS
ICDRR
Data 1
Data 2
User processing
[5] ICDR read
[5] IRIC clear
Figure 16.10 Example of Slave Receive Mode Operation Timing (2) (MLS = ACKB = 0) 16.3.5 Slave Transmit Operation
In slave transmit mode, the slave device outputs the transmit data, while the master device outputs the receive clock and returns an acknowledge signal. The transmission procedure and operations in slave transmit mode are described below. [1] Set the ICE bit in ICCR to 1. Set the MLS bit in ICMR and the MST and TRS bits in ICCR according to the operating mode. [2] When the slave address matches in the first frame following detection of the start condition, the slave device drives SDA low at the 9th clock pulse and returns an acknowledge signal. At the same time, the IRIC flag in ICCR is set to 1. If the IEIC bit in ICCR has been set to 1, an interrupt request is sent to the CPU. If the 8th data bit (R/W) is 1, the TRS bit in ICCR is set to 1, and the mode changes to slave transmit mode automatically. The TDRE internal flag is set to 1. The slave device drives SCL low from the fall of the transmit clock until ICDR data is written. [3] After clearing the IRIC flag to 0, write data to ICDR. The TDRE internal flag is cleared to 0. The written data is transferred to ICDRS, and the TDRE internal flag and the IRIC and IRTR
39
flags are set to 1 again. After clearing the IRIC flag to 0, write the next data to ICDR. The slave device sequentially sends the data written into ICDR in accordance with the clock output by the master device at the timing shown in figure 16.11. [4] When one frame of data has been transmitted, the IRIC flag in ICCR is set to 1 at the rise of the 9th transmit clock pulse. If the TDRE internal flag has been set to 1, this slave device drives SCL low from the fall of the transmit clock until data is written to ICDR. The master device drives SDA low at the 9th clock pulse, and returns an acknowledge signal. As this acknowledge signal is stored in the ACKB bit in ICSR, this bit can be used to determine whether the transfer operation was performed normally. When the TDRE internal flag is 0, the data written into ICDR is transferred to ICDRS, transmission is started, and the TDRE internal flag and the IRIC and IRTR flags are set to 1 again. [5] To continue transmission, clear the IRIC flag to 0, then write the next data to be transmitted into ICDR. The TDRE internal flag is cleared to 0. Transmit operations can be performed continuously by repeating steps [4] and [5]. To end transmission, write H'FF to ICDR to release SDA on the slave side. When SDA is changed from low to high when SCL is high, and the stop condition is detected, the BBSY flag in ICCR is cleared to 0.
Slave receive mode SCL (master output) SCL (slave output) SDA (slave output) SDA (master output) R/W Slave transmit mode
8
9
1
2
3
4
5
6
7
8
9
1
2
A [2]
Bit 7
Bit 6
Bit 5
Bit 4 Data 1
Bit 3
Bit 2
Bit 1
Bit 0
Bit 7
Bit 6
Data 2 A
TDRE [3] Interrupt request generation Data 2
IRIC
Interrupt request generation
Interrupt request generation Data 1
ICDRT
ICDRS
Data 1
Data 2
User processing
[3] IRIC clear
[3] ICDR write
[3] ICDR write
[5] IRIC clear
[5] ICDR write
Figure 16.11 Example of Slave Transmit Mode Operation Timing (MLS = 0)
40
16.3.6
IRIC Setting Timing and SCL Control
The interrupt request flag (IRIC) is set at different times depending on the WAIT bit in ICMR, the FS bit in SAR, and the FSX bit in SARX. If the TDRE or RDRF internal flag is set to 1, SCL is automatically held low after one frame has been transferred; this timing is synchronized with the internal clock. Figure 16.12 shows the IRIC set timing and SCL control.
(a) When WAIT = 0, and FS = 0 or FSX = 0 (I2C bus format, no wait) SCL 7 8 9 1
SDA IRIC
7
8
A
1
User processing
Clear IRIC
Write to ICDR (transmit) or read ICDR (receive)
(b) When WAIT = 1, and FS = 0 or FSX = 0 (I2C bus format, wait inserted) SCL 8 9 1
SDA IRIC
8
A
1
User processing
Clear IRIC
Clear Write to ICDR (transmit) IRIC or read ICDR (receive)
(c) When FS = 1 and FSX = 1 (synchronous serial format) SCL 7 8 1
SDA IRIC
7
8
1
User processing
Clear IRIC
Write to ICDR (transmit) or read ICDR (receive)
Figure 16.12 IRIC Setting Timing and SCL Control
41
16.3.7
Automatic Switching from Formatless Mode to I2C Bus Format
Setting the SW bit to 1 in DDCSWR enables formatless mode to be selected as the IIC0 operating mode. Switching from formatless mode to the I2C bus format (slave mode) is performed automatically when a falling edge is detected on the SCL pin. The following four preconditions are necessary for this operation: * A common data pin (SDA) for formatless and I2C bus format operation * Separate clock pins for formatless operation (VSYNCI) and I2C bus format operation (SCL) * A fixed 1 level for the SCL pin during formatless operation (the SCL pin does not output a low level) * Settings of bits other than TRS in ICCR that allow I2C bus format operation Automatic switching is performed from formatless mode to the I 2C bus format when the SW bit in DDCSWR is automatically cleared to 0 on detection of a falling edge on the SCL pin. Switching from the I2C bus format to formatless mode is achieved by having software set the SW bit in DDCSWR to 1. In formatless mode, bits (such as MSL and TRS) that control the I 2C bus interface operating mode must not be modified. When switching from the I2C bus format to formatless mode, set the TRS bit to 1 or clear it to 0 according to the transmit data (transmission or reception) in formatless mode, then set the SW bit to 1. After automatic switching from formatless mode to the I2C bus format (slave mode), in order to wait for slave address reception, the TRS bit is automatically cleared to 0. If a falling edge is detected on the SCL pin during formatless operation, the I2C bus interface operating mode is switched to the I 2C bus format without waiting for a stop condition to be detected.
42
16.3.8
Operation Using the DTC
The I2C bus format provides for selection of the slave device and transfer direction by means of the slave address and the R/W bit, confirmation of reception with the acknowledge bit, indication of the last frame, and so on. Therefore, continuous data transfer using the DTC must be carried out in conjunction with CPU processing by means of interrupts. Table 16.5 shows some examples of processing using the DTC. These examples assume that the number of transfer data bytes is known in slave mode. Table 16.5 Examples of Operation Using the DTC
Item Master Transmit Mode Master Receive Mode Transmission by CPU (ICDR write) Slave Transmit Mode Reception by CPU (ICDR read) Slave Receive Mode Reception by CPU (ICDR read)
Slave address + Transmission by DTC (ICDR write) R/W bit transmission/ reception Dummy data read Actual data transmission/ reception Dummy data (H'FF) write Last frame processing Transfer request processing after last frame processing -- Transmission by DTC (ICDR write) -- Not necessary 1st time: Clearing by CPU 2nd time: End condition issuance by CPU
Processing by CPU (ICDR read) Reception by DTC (ICDR read) -- Reception by CPU (ICDR read) Not necessary
-- Transmission by DTC (ICDR write) Processing by DTC (ICDR write) Not necessary
-- Reception by DTC (ICDR read) -- Reception by CPU (ICDR read)
Automatic clearing Not necessary on detection of end condition during transmission of dummy data (H'FF) Reception: Actual Transmission: Actual data count data count + 1 (+1 equivalent to dummy data (H'FF))
Setting of number of DTC transfer data frames
Reception: Actual Transmission: Actual data count data count + 1 (+1 equivalent to slave address + R/W bits)
43
16.3.9
Noise Canceler
The logic levels at the SCL and SDA pins are routed through noise cancelers before being latched internally. Figure 16.13 shows a block diagram of the noise canceler circuit. The noise canceler consists of two cascaded latches and a match detector. The SCL (or SDA) input signal is sampled on the system clock, but is not passed forward to the next circuit unless the outputs of both latches agree. If they do not agree, the previous value is held.
Sampling clock
C SCL or SDA input signal D Latch Q D
C Q Latch Match detector Internal SCL or SDA signal
System clock period Sampling clock
Figure 16.13 Block Diagram of Noise Canceler 16.3.10 Sample Flowcharts
Figures 16.14 to 16.17 show sample flowcharts for using the I2C bus interface in each mode.
44
Start Initialize Read BBSY in ICCR No BBSY = 0? Yes Set MST = 1 and TRS = 1 in ICCR Write BBSY = 1 and SCP = 0 in ICCR [3] Select master transmit mode. [1] Initialize
[2] Test the status of the SCL and SDA lines.
[4] Start condition issuance
Read IRIC in ICCR No IRIC = 1? Yes Write transmit data in ICDR Clear IRIC in ICCR Read IRIC in ICCR No IRIC = 1? Yes Read ACKB in ICSR ACKB = 0? Yes Transmit mode? Yes Write transmit data in ICDR Clear IRIC in ICCR Read IRIC in ICCR No No No
[5] Wait for a start condition generation
[6] Set transmit data for the first byte (slave address + R/W). (After writing ICDR, clear IRIC immediately)
[7] Wait for 1 byte to be transmitted.
[8] Test the acknowledge bit, transferred from slave device.
Master receive mode
[9] Set transmit data for the second and subsequent bytes. (After writing ICDR, clear IRIC immediately)
[10] Wait for 1 byte to be transmitted. IRIC = 1? Yes Read ACKB in ICSR [11] Test for end of transfer
No
End of transmission or ACKB = 1? Yes Clear IRIC in ICCR Write BBSY = 0 and SCP = 0 in ICCR End [12] Stop condition issuance
Figure 16.14 Flowchart for Master Transmit Mode (Example)
45
Master receive operation Set TRS = 0 in ICCR Set WAIT = 1 in ICMR Set ACKB = 0 in ICSR Read ICDR Clear IRIC in ICCR Read IRIC in ICCR No IRIC = 1? Yes Last receive ? No Clear IRIC in ICCR [4] Clear IRIC to trigger the 9th clock. (to end the wait insertion) [5] Wait for 1 byte to be received. (9th clock risig edge) Yes [2] Start receiving. The first read is a dummy read. After reading ICDR, please clear IRIC immediately. [1] Select receive mode
[3] Wait for 1 byte to be received. (8th clock falling edge)
Read IRIC in ICCR No IRIC = 1? Yes Read ICDR Clear IRIC in ICCR
[6] Read the receive data. [7] Clear IRIC
Read IRIC in ICCR No IRIC = 1? Yes Yes Last receive ? No Clear IRIC in ICCR
[8] Wait for the next data to be received. (8th clock falling edge)
[9] Clear IRIC to trigger the 9th clock. (to end the wait insertion)
Set ACKB = 1 in ICSR Set TRS = 1 in ICCR Clear IRIC in ICCR Read IRIC in ICCR No
[10] Set ACKB = 1 so as to return no acknowledge, or set TRS = 1 so as not to issue extra clock. [11] Clear IRIC to trigger the 9th clock. (to end the wait insertion)
[12] Wait for 1 byte to be received. IRIC = 1? Yes Set WAIT = 0 in ICMR Read ICDR Clear IRIC in ICCR Write BBSY = 0 and SCP = 0 in ICCR End [14] Stop condition issuance. [13] Set WAIT = 0. Read ICDR. Clear IRIC. (Note: After setting WAIT = 0, IRIC should be cleared to 0.)
Figure 16.15 Flowchart for Master Receive Mode (Example)
46
Start Initialize Set MST = 0 and TRS = 0 in ICCR Set ACKB = 0 in ICSR Read IRIC in ICCR [2] No IRIC = 1? Yes Read AAS and ADZ in ICSR AAS = 1 and ADZ = 0? Yes Read TRS in ICCR TRS = 0? Yes Last receive? No Read ICDR Clear IRIC in ICCR Read IRIC in ICCR No [4] IRIC = 1? Yes Set ACKB = 0 in ICSR Read ICDR Clear IRIC in ICCR Read IRIC in ICCR No IRIC = 1? Yes Read ICDR Clear IRIC in ICCR End [8] [5] [6] Yes [1] Select slave receive mode. [2] Wait for the first byte to be received (slave address). [3] Start receiving. The first read is a dummy read. [4] Wait for the transfer to end. [5] Set acknowledge data for the last receive. [6] Start the last receive. [7] Wait for the transfer to end. [8] Read the last receive data. No Slave transmit mode No General call address processing * Description omitted [1]
[3]
[7]
Figure 16.16 Flowchart for Slave Receive Mode (Example)
47
Slave transmit mode Clear IRIC in ICCR [1] Set transmit data for the second and subsequent bytes. [2] Wait for 1 byte to be transmitted. [3] Test for end of transfer. Read IRIC in ICCR No [2] IRIC = 1? Yes Read ACKB in ICSR End of transmission (ACKB = 1)? Yes Set TRS = 0 in ICCR Read ICDR Clear IRIC in ICCR End [4] [3] [4] Select slave receive mode. [5] Dummy read (to release the SCL line).
Write transmit data in ICDR Clear IRIC in ICCR
[1]
No
[5]
Figure 16.17 Flowchart for Slave Transmit Mode (Example) 16.3.11 Initialization of Internal State
The IIC has a function for forcible initialization of its internal state if a deadlock occurs during communication. Initialization is executed by (1) setting bits CLR3 to CLR0 in the DDCSWR register or (2) clearing the ICE bit. For details of settings for bits CLR3 to CLR0, see section 16.2.8, DDC Switch Register (DDCSWR). Scope of Initialization: The initialization executed by this function covers the following items: * TDRE and RDRF internal flags * Transmit/receive sequencer and internal operating clock counter
48
* Internal latches for retaining the output state of the SCL and SDA pins (wait, clock, data output, etc.) The following items are not initialized: * Actual register values (ICDR, SAR, SARX, ICMR, ICCR, ICSR, DDCSWR, STCR) * Internal latches used to retain register read information for setting/clearing flags in the ICMR, ICCR, ICSR, and DDCSWR registers * The value of the ICMR register bit counter (BC2 to BC0) * Generated interrupt sources (interrupt sources transferred to the interrupt controller) Notes on Initialization: * Interrupt flags and interrupt sources are not cleared, and so flag clearing measures must be taken as necessary. * Basically, other register flags are not cleared either, and so flag clearing measures must be taken as necessary. * When initialization is performed by means of the DDCSWR register, the write data for bits CLR3 to CLR0 is not retained. To perform IIC clearance, bits CLR3 to CLR0 must be written to simultaneously using an MOV instruction. Do not use a bit manipulation instruction such as BCLR. Similarly, when clearing is required again, all the bits must be written to simultaneously in accordance with the setting. * If a flag clearing setting is made during transmission/reception, the IIC module will stop transmitting/receiving at that point and the SCL and SDA pins will be released. When transmission/reception is started again, register initialization, etc., must be carried out as necessary to enable correct communication as a system. The value of the BBSY bit cannot be modified directly by this module clear function, but since the stop condition pin waveform is generated according to the state and release timing of the SCL and SDA pins, the BBSY bit may be cleared as a result. Similarly, state switching of other bits and flags may also have an effect. To prevent problems caused by these factors, the following procedure should be used when initializing the IIC state. 1. Execute initialization of the internal state by setting of bit CLR3 to CLR0 or by clearing ICE bit. 2. Execute a stop condition issuance instruction (write 0 to BBSY and SCP) to clear the BBSY bit to 0, and wait for two transfer rate clock cycles. 3. Re-execute initialization of the internal state by setting of bit CLR3 to CLR0 or by clearing ICE bit. 4. Initialize (re-set) the IIC registers.
49
16.4
Usage Notes
* In master mode, if an instruction to generate a start condition is immediately followed by an instruction to generate a stop condition, neither condition will be output correctly. To output consecutive start and stop conditions, after issuing the instruction that generates the start condition, read the relevant ports, check that SCL and SDA are both low, then issue the instruction that generates the stop condition. Note that SCL may not yet have gone low when BBSY is cleared to 0. * Either of the following two conditions will start the next transfer. Pay attention to these conditions when reading or writing to ICDR. Write access to ICDR when ICE = 1 and TRS = 1 (including automatic transfer from ICDRT to ICDRS) Read access to ICDR when ICE = 1 and TRS = 0 (including automatic transfer from ICDRS to ICDRR) * Table 16.6 shows the timing of SCL and SDA output in synchronization with the internal clock. Timings on the bus are determined by the rise and fall times of signals affected by the bus load capacitance, series resistance, and parallel resistance. Table 16.6 I2C Bus Timing (SCL and SDA Output)
Item SCL output cycle time SCL output high pulse width SCL output low pulse width SDA output bus free time Start condition output hold time Retransmission start condition output setup time Stop condition output setup time Data output setup time (master) Data output setup time (slave) Data output hold time t SDAHO Symbol t SCLO t SCLHO t SCLLO t BUFO t STAHO t STASO t STOSO t SDASO Output Timing 28t cyc to 256tcyc 0.5tSCLO 0.5tSCLO 0.5tSCLO - 1t cyc 0.5tSCLO - 1t cyc 1t SCLO 0.5tSCLO + 2tcyc 1t SCLLO - 3tcyc Unit ns ns ns ns ns ns ns ns Notes Figure 22.24 (reference)
1t SCLL - (6t cyc or 12t cyc *) 3t cyc ns
Note: * 6t cyc when IICX is 0, 12tcyc when 1.
* SCL and SDA input is sampled in synchronization with the internal clock. The AC timing therefore depends on the system clock cycle tcyc, as shown in I2C Bus Timing in section 22, Electrical Characteristics. Note that the I2C bus interface AC timing specifications will not be met with a system clock frequency of less than 5 MHz.
50
* The I2C bus interface specification for the SCL rise time tsr is under 1000 ns (300 ns for highspeed mode). In master mode, the I2C bus interface monitors the SCL line and synchronizes one bit at a time during communication. If tsr (the time for SCL to go from low to VIH) exceeds the time determined by the input clock of the I2C bus interface, the high period of SCL is extended. The SCL rise time is determined by the pull-up resistance and load capacitance of the SCL line. To insure proper operation at the set transfer rate, adjust the pull-up resistance and load capacitance so that the SCL rise time does not exceed the values given in the table below. Table 16.7 Permissible SCL Rise Time (tSr) Values
Time Indication tcyc Indication 7.5tcyc I C Bus Specification o = (Max.) 5 MHz Standard mode 1000 ns High-speed mode 1 17.5tcyc 300 ns
2
IICX 0
o= 8 MHz
o= o= o= 10 MHz 16 MHz 20 MHz 750 ns 300 ns 468 ns 300 ns 375 ns 300 ns
1000 ns 937 ns 300 ns 300 ns
Standard mode 1000 ns High-speed mode 300 ns
1000 ns 1000 ns 300 ns 300 ns
1000 ns 1000 ns 875 ns 300 ns 300 ns 300 ns
* The I2C bus interface specifications for the SCL and SDA rise and fall times are under 1000 ns and 300 ns. The I2C bus interface SCL and SDA output timing is prescribed by t cyc, as shown in table 16.6. However, because of the rise and fall times, the I2C bus interface specifications may not be satisfied at the maximum transfer rate. Table 16.8 shows output timing calculations for different operating frequencies, including the worst-case influence of rise and fall times. tBUFO fails to meet the I2C bus interface specifications at any frequency. The solution is either (a) to provide coding to secure the necessary interval (approximately 1 s) between issuance of a stop condition and issuance of a start condition, or (b) to select devices whose input timing permits this output timing for use as slave devices connected to the I2C bus. tSCLLO in high-speed mode and t STASO in standard mode fail to satisfy the I 2C bus interface specifications for worst-case calculations of tSr/tSf. Possible solutions that should be investigated include (a) adjusting the rise and fall times by means of a pull-up resistor and capacitive load, (b) reducing the transfer rate to meet the specifications, or (c) selecting devices whose input timing permits this output timing for use as slave devices connected to the I 2C bus.
51
Table 16.8 I2C Bus Timing (with Maximum Influence of tSr/tSf)
Time Indication (at Maximum Transfer Rate) [ns] I 2C Bus tSr/tSf SpecifiInfluence cation o = (Min.) 5 MHz (Max.) Standard mode -1000 4000 600 4700 1300 4700 1300 4000 600 4700 600 4000 600 250 100 250 100 4000 950 4750
Item t SCLHO
tcyc Indication 0.5tSCLO (-tSr)
o= 8 MHz 4000 950 4750
o= o= o= 10 MHz 16 MHz 20 MHz 4000 950 4750 4000 950 4750 4000 950 4750
High-speed -300 mode t SCLLO 0.5tSCLO (-tSf ) Standard mode -250
High-speed -250 mode t BUFO 0.5tSCLO - Standard -1000 1t cyc mode ( -tSr ) High-speed -300 mode 0.5tSCLO - Standard -250 1t cyc mode (-tSf ) High-speed -250 mode 1t SCLO (-tSr ) Standard mode -1000
1000* 1 1000* 1 1000* 1 1000* 1 1000* 1 3800* 1 3875* 1 3900* 1 3938* 1 3950* 1 750* 1 4550 800 9000 2200 4400 1350 3100 400 1300 825* 1 4625 875 9000 2200 4250 1200 3325 625 2200 850* 1 4650 900 9000 2200 4200 1150 3400 700 2500 888* 1 4688 938 9000 2200 4125 1075 3513 813 2950 900* 1 4700 950 9000 2200 4100 1050 3550 850 3100 400
t STAHO
t STASO
High-speed -300 mode t STOSO 0.5tSCLO + Standard -1000 2t cyc mode (-tSr ) High-speed -300 mode
t SDASO -1000 1t SCLLO*3 - Standard 3t cyc mode (master) (-tSr ) High-speed -300 mode t SDASO (slave) -1000 1t SCLL * 3 - Standard 12t cyc * 2 mode (-tSr ) High-speed -300 mode
-1400* 1 -500* 1 -200* 1 250
52
Time Indication (at Maximum Transfer Rate) [ns] I 2C Bus SpecifitSr/tSf Influence cation o = (Min.) 5 MHz (Max.) Standard mode 0 0 0 600 600
Item t SDAHO
tcyc Indication 3t cyc
o= 8 MHz 375 375
o= o= o= 10 MHz 16 MHz 20 MHz 300 300 188 188 150 150
High-speed 0 mode
Notes: *1 Does not meet the I 2C bus interface specification. Remedial action such as the following is necessary: (a) secure a start/stop condition issuance interval; (b) adjust the rise and fall times by means of a pull-up resistor and capacitive load; (c) reduce the transfer rate; (d) select slave devices whose input timing permits this output timing. The values in the above table will vary depending on the settings of the IICX bit and bits CKS0 to CKS2. Depending on the frequency it may not be possible to achieve the maximum transfer rate; therefore whether or not the I2C bus interface specifications are met must be determined in accordance with the actual setting conditions. *2 Value when the IICX bit is set to 1. When the IICX bit is cleared to 0, the value is (tSCLL - 6tcyc ). *3 Calculated using the I 2C bus specification values (standard mode: 4700 ns min.; highspeed mode: 1300 ns min.).
* Note on ICDR Read at End of Master Reception To halt reception at the end of a receive operation in master receive mode, set the TRS bit to 1 and write 0 to BBSY and SCP in ICCR. This changes SDA from low to high when SCL is high, and generates the stop condition. After this, receive data can be read by means of an ICDR read, but if data remains in the buffer the ICDRS receive data will not be transferred to ICDR, and so it will not be possible to read the second byte of data. If it is necessary to read the second byte of data, issue the stop condition in master receive mode (i.e. with the TRS bit cleared to 0). When reading the receive data, first confirm that the BBSY bit in the ICCR register is cleared to 0, the stop condition has been generated, and the bus has been released, then read the ICDR register with TRS cleared to 0. Note that if the receive data (ICDR data) is read in the interval between execution of the instruction for issuance of the stop condition (writing of 0 to BBSY and SCP in ICCR) and the actual generation of the stop condition, the clock may not be output correctly in subsequent master transmission. Clearing of the MST bit after completion of master transmission/reception, or other modifications of IIC control bits to change the transmit/receive operating mode or settings, must be carried out during interval (a) in figure 16.18 (after confirming that the BBSY bit has been cleared to 0 in the ICCR register).
53
Stop condition (a) SDA SCL Internal clock BBSY bit Master receive mode ICDR reading prohibited Bit 0 8 A 9
Start condition
Execution of stop condition issuance instruction (0 written to BBSY and SCP)
Confirmation of stop condition generation (0 read from BBSY)
Start condition issuance
Figure 16.18 Points for Attention Concerning Reading of Master Receive Data * Notes on Start Condition Issuance for Retransmission Figure 16-19 shows the timing of start condition issuance for retransmission, and the timing for subsequently writing data to ICDR, together with the corresponding flowchart. After start condition issuance is done and determined the start condition, write the transmit data to ICDR, as shown below.
54
[1] Wait for end of 1-byte transfer. IRIC= 1 ? Yes Clear IRIC in ICSR Start condition issuance? Yes Read SCL pin SCL= Low ? Yes Write BBSY = 1, SCP = 0 (ICSR) [3] No [2] No Other processing [5] Set transmit data (slave address + R/W). Note: Program so that processing from [3] to [5] is executed continuously. No [1] [2] Determine whether SCL is low. [3] Issue restart condition instruction for retransmission. [4] Determine whether start condition is generated or not.
IRIC= 1 ? Yes
No
[4]
Write transmit data to ICDR
[5]
Start condition (retransmission) SCL
SDA
ACK
bit7
IRIC [3] Start condition instruction issuance [1] IRIC determination [2] Determination of SCL = low
[4] IRIC determination [5] ICDR write (next transmit data)
Figure 16.19 Flowchart and Timing of Start Condition Instruction Issuance for Retransmission
55
* Notes on I 2C Bus Interface Stop Condition Instruction Issuance If the rise time of the 9th SCL clock exceeds the specification because the bus load capacitance is large, or if there is a slave device of the type that drives SCL low to effect a wait, after rising of the 9th SCL clock, issue the stop condition instruction after reading SCL and determining it to be low, as shown below.
9th clock VIH High period secured
SCL
As waveform rise is late, SCL is detected as low SDA Stop condition IRIC [1] Determination of SCL = low [2] Stop condition instruction issuance
Figure 16.20 Timing of Stop Condition Issuance
56
Section 22 Electrical Characteristics
22.1 Voltage of Power Supply and Operating Range
The power supply voltage and operating range (shaded part) for each product are shown in table 22.1. Table 22.1 Power Supply Voltage and Operating Range (1)
Product/ Power supply
HD64F2128
VCC 5.5 V 4.5 V 4.0 V Flash Memory Programming Select 5.0 V 0.5 V for programming condition in PROM programmer 2 MHz 16 MHz 20 MHz fop
(F-ZTAT Products)
5 V version
Product/ Power supply
HD64F2128V
VCC 5.5 V
3 V version
Select 5.0 V 0.5 V for programming condition in PROM programmer
3.6 V 3.0 V 2 MHz 10 MHz fop
Flash Memory Programming
VCC1 pin VCC2 pin AVCC pin
V CC = 5.0 V 10% (fop = 2 to 20 MHz) V CC = 4.0 V to 5.5 V (fop = 2 to 16 MHz) AVCC = 5.0 V 10% (fop = 2 to 20 MHz) AVCC = 4.0 V to 5.5 V (fop = 2 to 16 MHz)
VCC1 pin VCC2 pin AVCC pin
V CC = 3.0 V to 5.5 V (fop = 2 to 10 MHz)
AVCC = 3.0 V to 5.5 V (fop = 2 to 10 MHz)
57
Table 22.1 Power Supply Voltage and Operating Range (2)
Product/ Power supply
HD6432128S HD6432128SW HD6432127S HD6432127SW
VCC 5.5 V 4.5 V
(Mask ROM Products)
5 V version
VCC 5.5 V
4 V version
VCC
3 V version
4.0 V
3.6 V 2.7 V
2 MHz fop
20 MHz
2 MHz fop V CC = 4.0 V to 5.5 V
16 MHz
2 MHz 10 MHz fop V CC = 2.7 V to 3.6 V (When using CIN input, VCC = 3.0 V to 3.6 V) V CL = V CC connection
VCC1 pin
V CC = 5.0 V 10%
VCL pin (VCC2) AVCC pin
V CL = C connection
V CL = C connection
AVCC = 5.0 V 10%
AVCC = 4.0 V to 5.5 V
AVCC = 2.7 V to 3.6 V (When using CIN input, AV CC = 3.0 V to 3.6 V)
Table 22.1 Power Supply Voltage and Operating Range (3)
Product/ Power supply
HD6432127R HD6432126R HD6432126RW HD6432122 HD6432120
2 MHz fop 20 MHz VCC
(Mask ROM Products)
5 V version
VCC 5.5 V
4 V version
3 V version
VCC 5.5 V
HD6432127RW 5.5 V
4.5 V
4.0 V 2.7 V 2 MHz fop V CC = 4.0 V to 5.5 V 16 MHz 2 MHz 10 MHz fop V CC = 2.7 V to 5.5 V
VCC1 pin VCC2 pin AVCC pin
V CC = 5.0 V 10%
AVCC = 5.0 V 10%
AVCC = 4.0 V to 5.5 V
AVCC = 2.7 V to 5.5 V
58
22.2
22.2.1
Electrical Characteristics [H8S/2128 Series, H8S/2128 F-ZTAT]
Absolute Maximum Ratings
Table 22.2 lists the absolute maximum ratings. Table 22.2 Absolute Maximum Ratings
Item Power supply voltage Input voltage (except ports 6, and 7) Input voltage (CIN input not selected for port 6) Input voltage (CIN input selected for port 6) Input voltage (port 7) Analog power supply voltage Analog input voltage Operating temperature Symbol VCC Vin Vin Vin Vin AVCC VAN Topr Value -0.3 to +7.0 -0.3 to VCC +0.3 -0.3 to VCC +0.3 Lower voltage of -0.3 to V CC +0.3 and AVCC +0.3 -0.3 to AVCC + 0.3 -0.3 to +7.0 -0.3 to AVCC +0.3 Regular specifications: -20 to +75 Wide-range specifications: -40 to +85 Operating temperature (Flash memory programming/ erasing) Storage temperature Topr Regular specifications: 0 to +75 Wide-range specifications: 0 to +85 Tstg -55 to +125 C Unit V V V V V V V C C C
Caution: Permanent damage to the chip may result if absolute maximum ratings are exceeded.
59
22.2.2
DC Characteristics
Table 22.3 lists the DC characteristics. Table 22.4 lists the permissible output currents. Table 22.3 DC Characteristics (1) Conditions: VCC = 5.0 V 10%, AVCC*1 = 5.0 V 10%, VSS = AVSS*1 = 0 V, Ta = -20 to +75C*8 (regular specifications), Ta = -40 to +85C*8 (wide-range specifications)
Item Schmitt P67 to P60 * * , (1) trigger input IRQ2 to IRQ0* 3 voltage Input high voltage RES, STBY, (2) NMI, MD1, MD0 EXTAL Port 7 Input pins except (1) and (2) above Input low voltage RES, STBY, MD1, MD0 NMI, EXTAL, input pins except (1) and (3) above Output high All output pins voltage (except P47, and P52* 4) P47, P52* Output low voltage Input leakage current
4 2 5
Symbol VT VT
- + + -
Min 1.0 -- 0.4
Typ -- -- --
Max --
Unit V
Test Conditions
VCC x 0.7 V -- VCC +0.3 VCC +0.3 V V V
VT - VT VIH
VCC - 0.7 -- VCC x 0.7 -- 2.0 2.0 -- --
AVCC +0.3 V VCC +0.3 V
(3)
VIL
-0.3 -0.3
-- --
0.5 0.8
V V
VOH
VCC - 0.5 -- 3.5 2.5 -- -- -- -- -- -- --
-- -- -- 0.4 1.0 10.0 1.0 1.0
V V V V V A A A
I OH = -200 A I OH = -1 mA I OH = -1 mA I OL = 1.6 mA I OL = 10 mA Vin = 0.5 to VCC - 0.5 V
All output pins Ports 1 to 3 RES STBY, NMI, MD1, MD0 Port 7
VOL Iin
-- -- -- -- --
Vin = 0.5 to AVCC - 0.5 V
60
Item Three-state Ports 1 to 6 leakage current (off state) Input pull-up MOS current Ports 1 to 3
Symbol ITSI
Min --
Typ --
Max 1.0
Unit A
Test Conditions Vin = 0.5 to VCC - 0.5 V
-I P
50
--
300
A
Vin = 0 V
Input RES capacitance NMI P52, P47, P24, P23 Input pins except (4) above Current Normal operation dissipation * 6 Sleep mode Standby mode* 7
(4)
Cin
-- -- -- --
-- -- -- -- 70 55 0.01 -- 1.5 0.01 -- -- --
80 50 20 15 90 75 5.0 20.0 3.0 5.0 5.5 5.5 --
pF pF pF pF mA mA A A mA A V V V
Vin = 0 V f = 1 MHz Ta = 25C
I CC
-- -- -- --
f = 20 MHz f = 20 MHz Ta 50C 50C < Ta
Analog power supply current
During A/D conversion Idle
AlCC
-- --
AVCC = 2.0 V to 5.5 V Operating Idle/not used
Analog power supply voltage* 1
AVCC
4.5 2.0
RAM standby voltage
VRAM
2.0
Notes: *1 Do not leave the AVCC, and AVSS pins open even if the A/D converter is not used. Even if the A/D converter is not used, apply a value in the range 2.0 V to 5.5 V to AV CC by connection to the power supply (V CC), or some other method. *2 P67 to P60 include supporting module inputs multiplexed on those pins. *3 IRQ2 includes the ADTRG signal multiplexed on that pin. *4 In the H8S/2128 Series, P52/SCK0/SCL0 and P47/SDA0 are NMOS push-pull outputs. An external pull-up resistor is necessary to provide high-level output from SCL0 and SDA0 (ICE = 1). In the H8S/2128 Series, P52/SCK0 and P47 (ICE = 0) high levels are driven by NMOS.
61
*5 The upper limit of the port 6 applied voltage is V CC + 0.3 V when CIN input is not selected, and the lower of VCC + 0.3 V and AVCC + 0.3 V when CIN input is selected. When a pin is in output mode, the output voltage is equivalent to the applied voltage. *6 Current dissipation values are for V IH min = VCC - 0.5 V and VIL max = 0.5 V with all output pins unloaded and the on-chip pull-up MOSs in the off state. *7 The values are for VRAM VCC < 4.5 V, VIH min = VCC x 0.9, and V IL max = 0.3 V. *8 For flash memory program/erase operations, the applicable range is T a = 0 to +75C (regular specifications) or Ta = 0 to +85C (wide-range specifications).
62
Table 22.3 DC Characteristics (2) Conditions: VCC = 4.0 V to 5.5 V*8, AVCC*1 = 4.0 V to 5.5 V, VSS = AVSS*1 = 0 V, Ta = -20 to +75C*8 (regular specifications), Ta = -40 to +85C*8 (wide-range specifications)
Item Schmitt P67 to P60 * * , (1) trigger input IRQ2 to IRQ0* 3 voltage
2 5
Symbol VT VT
- + + - + + - -
Min 1.0 -- 0.4 0.8 -- 0.3 VCC - 0.7
Typ -- -- -- -- -- -- --
Max --
Unit V
Test Conditions VCC = 4.5 V to 5.5 V
VCC x 0.7 V -- -- V V
VT - VT VT VT
VCC < 4.5 V
VCC x 0.7 V -- V
VT - VT Input high voltage RES, STBY, (2) NMI, MD1, MD0 EXTAL Port 7 Input pins except (1) and (2) above Input low voltage RES, STBY, MD1, MD0 NMI, EXTAL, input pins except (1) and (3) above Output high All output pins voltage (except P47, and P52* 4) VOH (3) VIL VIH
VCC +0.3 V VCC +0.3 V AVCC +0.3 V VCC +0.3 V
VCC x 0.7 -- 2.0 2.0 -- --
-0.3 -0.3
-- --
0.5 0.8
V V
VCC - 0.5 3.5
-- --
-- --
V V
I OH = -200 A I OH = -1 mA, VCC= 4.5 V to 5.5 V I OH = -1 mA, VCC < 4.5 V I OH = -1 mA I OL = 1.6 mA I OL = 10 mA Vin = 0.5 to VCC - 0.5 V Vin = 0.5 to AVCC - 0.5 V
3.0 P47, P52* 4 Output low voltage Input leakage current All output pins Ports 1 to 3 RES STBY, NMI, MD1, MD0 Port 7 Iin VOL 2.0 -- -- -- -- --
-- -- -- -- -- -- --
-- -- 0.4 1.0 10.0 1.0 1.0
V V V V A A A
63
Item Three-state Ports 1 to 6 leakage current (off state) Input pull-up MOS current Ports 1 to 3
Symbol ITSI
Min --
Typ --
Max 1.0
Unit A
Test Conditions Vin = 0.5 to VCC - 0.5 V
-I P
50
--
300
A
Vin = 0 V, VCC = 4.5 V to 5.5 V Vin = 0 V, VCC < 4.5 V Vin = 0 V, f = 1 MHz, Ta = 25C
30 (4) Cin -- -- -- -- I CC -- -- -- --
-- -- -- -- -- 55 42 0.01 -- 1.5 0.01 -- -- --
200 80 50 20 15 75 62 5.0 20.0 3.0 5.0 5.5 5.5 --
A pF pF pF pF mA mA A A mA A V V V
Input RES capacitance NMI P52, P47, P24, P23 Input pins except (4) above Current Normal operation dissipation * 6 Sleep mode Standby mode* 7
f = 16 MHz f = 16 MHz Ta 50C 50C < Ta
Analog power supply current
During A/D conversion Idle
AlCC
-- --
AVCC = 2.0 V to 5.5 V Operating Idle/not used
Analog power supply voltage* 1
AVCC
4.0 2.0
RAM standby voltage
VRAM
2.0
Notes: *1 Do not leave the AVCC, and AVSS pins open even if the A/D converter is not used. Even if the A/D converter is not used, apply a value in the range 2.0 V to 5.5 V to AV CC by connection to the power supply (V CC), or some other method. *2 P67 to P60 include supporting module inputs multiplexed on those pins. *3 IRQ2 includes the ADTRG signal multiplexed on that pin. *4 In the H8S/2128 Series, P52/SCK0/SCL0 and P47/SDA0 are NMOS push-pull outputs. An external pull-up resistor is necessary to provide high-level output from SCL0 and SDA0 (ICE = 1). In the H8S/2128 Series, P52/SCK0 and P47 (ICE = 0) high levels are driven by NMOS. *5 The upper limit of the port 6 applied voltage is V CC + 0.3 V when CIN input is not selected, and the lower of VCC + 0.3 V and AVCC + 0.3 V when CIN input is selected. When a pin is in output mode, the output voltage is equivalent to the applied voltage.
64
*6 Current dissipation values are for V IH min = VCC - 0.5 V and VIL max = 0.5 V with all output pins unloaded and the on-chip pull-up MOSs in the off state. *7 The values are for VRAM VCC < 4.0 V, VIH min = VCC x 0.9, and V IL max = 0.3 V. *8 For flash memory program/erase operations, the applicable ranges are VCC = 4.5 V to 5.5 V and T a = 0 to +75C (regular specifications) or T a = 0 to +85C (wide-range specifications).
65
Table 22.3 DC Characteristics (3) Conditions (Mask ROM version): VCC = 2.7 V to 5.5 V, AVCC*1 = 2.7 V to 5.5 V, VSS = AVSS*1 = 0 V, Ta = -20 to +75C (Flash memory version): VCC = 3.0 V to 5.5 V, AVCC*1 = 3.0 V to 5.5 V, VSS = AVSS*1 = 0 V, Ta = -20 to +75C*8
Symbol VT VT
- + + -
Item Schmitt P67 to P60 * 2 *5, (1) trigger input IRQ2 to IRQ0* 3 voltage Input high voltage RES, STBY, (2) NMI, MD1, MD0 EXTAL Port 7 Input pins except (1) and (2) above Input low voltage RES, STBY, MD1, MD0 NMI, EXTAL, input pins except (1) and (3) above Output high All output pins voltage (except P47, and P52* 4) P47, P52* 4 Output low voltage All output pins Ports 1 to 3 (3)
Min
Typ
Max --
Unit V
Test Conditions
VCC x 0.2 -- -- -- VCC x 0.05 -- VCC x 0.9 -- VCC x 0.7 -- VCC x 0.7 -- VCC x 0.7 --
VCC x 0.7 V -- V
VT - VT VIH
VCC +0.3 V VCC +0.3 V AVCC +0.3 V VCC +0.3 V
VIL
-0.3 -0.3
-- --
VCC x 0.1 V VCC x 0.2 V 0.8 V V V V V V VCC < 4.0 V VCC = 4.0 V to 5.5 V I OH = -200 A I OH = -1 mA (VCC < 4.0 V) I OH = -1 mA I OL = 1.6 mA I OL = 5 mA (VCC < 4.0 V), I OL = 10 mA (4.0 V VCC 5.5 V) Vin = 0.5 to VCC - 0.5 V Vin = 0.5 to AVCC - 0.5 V
VOH
VCC - 0.5 VCC - 1.0 1.0
-- -- -- -- --
-- -- -- 0.4 1.0
VOL
-- --
Input leakage current
RES STBY, NMI, MD1, MD0 Port 7
Iin
-- -- --
-- -- --
10.0 1.0 1.0
A A A
66
Item Three-state Ports 1 to 6 leakage current (off state) Input pull-up MOS current Ports 1 to 3
Symbol ITSI
Min --
Typ --
Max 1.0
Unit A
Test Conditions Vin = 0.5 to VCC - 0.5 V
-I P
10
--
150
A
Vin = 0 V, VCC = 2.7 V to 3.6 V Vin = 0 V, f = 1 MHz, Ta = 25C
Input RES capacitance NMI P52, P47, P24, P23 Input pins except (4) above Current Normal operation dissipation * 6 Sleep mode Standby mode* 7
(4)
Cin
-- -- -- --
-- -- -- -- 40 30 0.01 -- 1.5 0.01 -- -- --
80 50 20 15 52 42 5.0 20.0 3.0 5.0 5.5 5.5 --
pF pF pF pF mA mA A A mA A V V V
I CC
-- -- -- --
f = 10 MHz f = 10 MHz Ta 50C 50C < Ta
Analog power supply current
During A/D conversion Idle
AlCC
-- --
AVCC = 2.0 V to 5.5 V Operating Idle/not used
Analog power supply voltage* 1
AVCC
2.7 2.0
RAM standby voltage
VRAM
2.0
Notes: *1 Do not leave the AVCC, and AVSS pins open even if the A/D converter is not used. Even if the A/D converter is not used, apply a value in the range 2.0 V to 5.5 V to AV CC by connection to the power supply (V CC), or some other method. *2 P67 to P60 include supporting module inputs multiplexed on those pins. *3 IRQ2 includes the ADTRG signal multiplexed on that pin. *4 In the H8S/2128 Series, P52/SCK0/SCL0 and P47/SDA0 are NMOS push-pull outputs. An external pull-up resistor is necessary to provide high-level output from SCL0 and SDA0 (ICE = 1). In the H8S/2128 Series, P52/SCK0 and P47 (ICE = 0) high levels are driven by NMOS.
67
*5 The upper limit of the port 6 applied voltage is V CC + 0.3 V when CIN input is not selected, and the lower of VCC + 0.3 V and AVCC + 0.3 V when CIN input is selected. When a pin is in output mode, the output voltage is equivalent to the applied voltage. *6 Current dissipation values are for V IH min = VCC - 0.5 V and VIL max = 0.5 V with all output pins unloaded and the on-chip pull-up MOSs in the off state. *7 The values are for VRAM VCC < 2.7 V, VIH min = VCC x 0.9, and V IL max = 0.3 V. *8 For flash memory program/erase operations, the applicable range is VCC = 3.0 V to 3.6 V and T a = 0 to +75C.
68
Table 22.4 Permissible Output Currents Conditions: VCC = 4.0 V to 5.5 V, VSS = 0 V, Ta = -20 to +75C (regular specifications), Ta = -40 to +85C (wide-range specifications)
Item Permissible output low current (per pin) SCL1, SCL0, SDA1, SDA0 Ports 1, 2, 3 Other output pins Permissible output low current (total) Total of ports 1, 2, and 3 IOL Total of all output pins, including the above All output pins Total of all output pins -I OH -IOH Symbol Min I OL -- -- -- -- -- -- -- Typ -- -- -- -- -- -- -- Max 20 10 2 80 120 2 40 Unit mA mA mA mA mA mA mA
Permissible output high current (per pin) Permissible output high current (total)
Notes: 1. To protect chip reliability, do not exceed the output current values in table 22.4. 2. When driving a Darlington pair or LED, always insert a current-limiting resistor in the output line, as show in figures 22.1 and 22.2.
Table 22.4 Permissible Output Currents (cont) Conditions: VCC = 2.7 V to 5.5 V, VSS = 0 V, Ta = -20 to +75C
Item Permissible output low current (per pin) SCL1, SCL0, SDA1, SDA0 Ports 1, 2, 3 Other output pins Permissible output low current (total) Total of ports 1, 2, and 3 IOL Total of all output pins, including the above All output pins Total of all output pins -I OH -IOH Symbol Min I OL -- -- -- -- -- -- -- Typ -- -- -- -- -- -- -- Max 10 2 1 40 60 2 30 Unit mA mA mA mA mA mA mA
Permissible output high current (per pin) Permissible output high current (total)
Notes: 1. To protect chip reliability, do not exceed the output current values in table 22.4. 2. When driving a Darlington pair or LED, always insert a current-limiting resistor in the output line, as show in figures 22.1 and 22.2.
69
Table 22.5 Bus Drive Characteristics Conditions: VCC = 2.7 V to 5.5 V, VSS = 0 V Applicable Pins: SCL1, SCL0, SDA1, SDA0 (bus drive function selected)
Item Schmitt trigger input voltage Symbol VT
-
Min VCC x 0.3 --
Typ -- -- -- -- -- -- -- -- -- --
Max -- VCC x 0.7 -- VCC + 0.5 VCC x 0.3 0.8 0.5 0.4 20 1.0 250
Unit V
Test Conditions VCC = 2.7 V to 5.5 V VCC = 2.7 V to 5.5 V VCC = 2.7 V to 5.5 V
VT+ VT - VT Input high voltage Input low voltage Output low voltage VIH VIL VOL
+ -
VCC x 0.05 VCC x 0.7 -0.5 -- -- --
V
VCC = 2.7 V to 5.5 V VCC = 2.7 V to 5.5 V
V
I OL = 16 mA, VCC = 4.5 V to 5.5 V I OL = 8 mA I OL = 3 mA
Input capacitance
Cin
-- --
pF A ns
Vin = 0 V, f = 1 MHz, Ta = 25C Vin = 0.5 to VCC - 0.5 V VCC = 2.7 V to 5.5 V
Three-state leakage | ITSI | current (off state) SCL, SDA output fall time t Of
20 + 0.1Cb --
This chip
2 k Port
Darlington pair
Figure 22.1 Darlington Pair Drive Circuit (Example)
70
This chip
600 Ports 1 to 3 LED
Figure 22.2 LED Drive Circuit (Example) 22.2.3 AC Characteristics
Figure 22.3 shows the test conditions for the AC characteristics.
VCC RL Chip output pin C = 30 pF: All ports RL = 2.4 k RH = 12 k I/O timing test levels * Low level: 0.8 V * High level: 2.0 V
C
RH
Figure 22.3 Output Load Circuit
71
(1) Clock Timing Table 22.6 shows the clock timing. The clock timing specified here covers clock (o) output and clock pulse generator (crystal) and external clock input (EXTAL pin) oscillation settling times. For details of external clock input (EXTAL pin and EXCL pin) timing, see section 20, Clock Pulse Generator. Table 22.6 Clock Timing Condition A: VCC = 5.0 V 10%, VSS = 0 V, o = 2 MHz to maximum operating frequency, Ta = -20 to +75C (regular specifications), Ta = -40 to +85C (wide-range specifications) Condition B: VCC = 4.0 V to 5.5 V, VSS = 0 V, o = 2 MHz to maximum operating frequency, Ta = -20 to +75C (regular specifications), Ta = -40 to +85C (wide-range specifications) Condition C: VCC = 2.7 V to 5.5 V*, VSS = 0 V, o = 2 MHz to maximum operating frequency, Ta = -20 to +75C
Condition A 20 MHz Item Clock cycle time Clock high pulse width Clock low pulse width Clock rise time Clock fall time Oscillation settling time at reset (crystal) Oscillation settling time in software standby (crystal) External clock output stabilization delay time Symbol t cyc t CH t CL t Cr t Cf t OSC1 Min 50 17 17 -- -- 10 Max 500 -- -- 8 8 -- Condition B 16 MHz Min 62.5 20 20 -- -- 10 Max 500 -- -- 10 10 -- Condition C 10 MHz Min 100 30 30 -- -- 20 Max 500 -- -- 20 20 -- Unit ns ns ns ns ns ms Figure 22.5 Figure 22.6 Test Conditions Figure 22.4 Figure 22.4
t OSC2
8
--
8
--
8
--
ms
t DEXT
500
--
500
--
500
--
s
Note: * For the low-voltage F-ZTAT version, V CC = 3.0 V to 5.5 V.
72
tcyc tCH o tCL tCr tCf
Figure 22.4 System Clock Timing
EXTAL tDEXT VCC tDEXT
STBY tOSC1 RES tOSC1
o
Figure 22.5 Oscillation Settling Timing
o
NMI
IRQi (i = 0, 1, 2) tOSC2
Figure 22.6 Oscillation Setting Timing (Exiting Software Standby Mode)
73
(2) Control Signal Timing Table 22.7 shows the control signal timing. The only external interrupts that can operate on the subclock (o = 32.768 kHz) are NMI and IRQ0, 1, and IRQ2. Table 22.7 Control Signal Timing Condition A: VCC = 5.0 V 10%, VSS = 0 V, o = 32.768 kHz, 2 MHz to maximum operating frequency, Ta = -20 to +75C (regular specifications), Ta = -40 to +85C (wide-range specifications) Condition B: VCC = 4.0 V to 5.5 V, VSS = 0 V, o = 32.768 kHz, 2 MHz to maximum operating frequency, Ta = -20 to +75C (regular specifications), Ta = -40 to +85C (wide-range specifications) Condition C: VCC = 2.7 V to 5.5 V*, VSS = 0 V, o = 32.768 kHz, 2 MHz to maximum operating frequency, Ta = -20 to +75C
Condition A 20 MHz Item RES setup time RES pulse width NMI setup time (NMI) NMI hold time (NMI) NMI pulse width (exiting software standby mode) IRQ setup time (IRQ2 to IRQ0) IRQ hold time (IRQ2 to IRQ0) IRQ pulse width (IRQ2 to IRQ0) (exiting software standby mode) Symbol t RESS t RESW t NMIS t NMIH t NMIW Min 200 20 150 10 200 Max -- -- -- -- -- Condition B 16 MHz Min 200 20 150 10 200 Max -- -- -- -- -- Condition C 10 MHz Min 300 20 250 10 200 Max -- -- -- -- -- Unit ns t cyc ns ns ns Figure 22.8 Test Conditions Figure 22.7
t IRQS t IRQH t IRQW
150 10 200
-- -- --
150 10 200
-- -- --
250 10 200
-- -- --
ns ns ns
Note: * For the low-voltage F-ZTAT version, V CC = 3.0 V to 5.5 V.
74
o tRESS RES tRESW tRESS
Figure 22.7 Reset Input Timing
o
tNMIS NMI tNMIW
tNMIH
IRQi (i = 2 to 0) tIRQS IRQ Edge input tIRQS IRQ Level input
tIRQW tIRQH
Figure 22.8 Interrupt Input Timing
75
(3) Bus Timing Table 22.8 shows the bus timing. Operation in external expansion mode is not guaranteed when operating on the subclock (o = 32.768 kHz). Table 22.8 Bus Timing Condition A: VCC = 5.0 V 10%, VSS = 0 V, o = 2 MHz to maximum operating frequency, Ta = -20 to +75C (regular specifications), Ta = -40 to +85C (wide-range specifications) Condition B: VCC = 4.0 V to 5.5 V, VSS = 0 V, o = 2 MHz to maximum operating frequency, Ta = -20 to +75C (regular specifications), Ta = -40 to +85C (wide-range specifications) Condition C: VCC = 2.7 V to 5.5 V*, VSS = 0 V, o = 2 MHz to maximum operating frequency, Ta = -20 to +75C
Condition A 20 MHz Item Address delay time Address setup time Address hold time CS delay time (IOS) AS delay time RD delay time 1 RD delay time 2 Read data setup time Read data hold time Symbol Min t AD t AS t AH t CSD t ASD t RSD1 t RSD2 t RDS t RDH -- Max 20 Min -- Condition B 16 MHz Max 30 Min -- Condition C 10 MHz Max 40 Test Unit Conditions ns ns ns ns ns ns ns ns ns ns ns Figure 22.9 to figure 22.13
0.5 x -- t cyc - 15 0.5 x -- t cyc - 10 -- -- -- -- 15 0 -- -- 20 30 30 30 -- -- 1.0 x t cyc - 30 1.5 x t cyc - 25
0.5 x -- t cyc - 20 0.5 x -- t cyc - 15 -- -- -- -- 20 0 -- -- 30 45 45 45 -- -- 1.0 x t cyc - 40 1.5 x t cyc - 35
0.5 x -- t cyc - 30 0.5 x -- t cyc - 20 -- -- -- -- 35 0 -- -- 40 60 60 60 -- -- 1.0 x t cyc - 60 1.5 x t cyc - 50
Read data t ACC1 access time 1 Read data t ACC2 access time 2 76
Condition A 20 MHz Item Symbol Min -- -- -- -- -- Max 2.0 x t cyc - 30 2.5 x t cyc - 25 3.0 x t cyc - 30 30 30
Condition B 16 MHz Min -- -- -- -- -- Max 2.0 x t cyc - 40 2.5 x t cyc - 35 3.0 x t cyc - 40 45 45
Condition C 10 MHz Min -- -- -- -- -- Max 2.0 x t cyc - 60 2.5 x t cyc - 50 3.0 x t cyc - 60 60 60 Test Unit Conditions ns ns ns ns ns ns ns ns ns ns ns ns Figure 22.9 to figure 22.13
Read data t ACC3 access time 3 Read data t ACC4 access time 4 Read data t ACC5 access time 5 WR delay time 1 WR delay time 2 WR pulse width 1 WR pulse width 2 Write data delay time Write data setup time Write data hold time WAIT setup time WAIT hold time t WRD1 t WRD2 t WSW1 t WSW2 t WDD t WDS t WDH t WTS t WTH
1.0 x -- t cyc - 20 1.5 x -- t cyc - 20 -- 0 10 30 5 30 -- -- -- --
1.0 x -- t cyc - 30 1.5 x -- t cyc - 30 -- 0 15 45 5 45 -- -- -- --
1.0x -- t cyc - 40 1.5 x -- t cyc - 40 -- 0 20 60 10 60 -- -- -- --
Note: * For the low-voltage F-ZTAT version, V CC = 3.0 V to 5.5 V.
77
T1
T2
o tAD A15 to A0, IOS* tCSD AS* tAS tAH tASD tASD
tRSD1 RD (read) tAS
tACC2
tRSD2
tACC3 D7 to D0 (read)
tRDS
tRDH
tWRD2 WR (write) tAS tWDD D7 to D0 (write) tWSW1
tWRD2 tAH tWDH
Note: * AS and IOS are the same pin. The function is selected by the IOSE bit in SYSCR.
Figure 22.9 Basic Bus Timing (Two-State Access)
78
T1
T2
T3
o
tAD A15 to A0, IOS* tCSD AS* tAS tASD tASD tAH
tRSD1 RD (read) tAS
tACC4
tRSD2
tACC5 D7 to D0 (read)
tRDS
tRDH
tWRD1 WR (write) tWDD tWDS D7 to D0 (write) tWSW2
tWRD2 tAH tWDH
Note: * AS and IOS are the same pin. The function is selected by the IOSE bit in SYSCR.
Figure 22.10 Basic Bus Timing (Three-State Access)
79
T1
T2
TW
T3
o
A15 to A0, IOS* AS*
RD (read) D7 to D0 (read) WR (write) D7 to D0 (write) tWTS tWTH WAIT tWTS tWTH
Note: * AS and IOS are the same pin. The function is selected by the IOSE bit in SYSCR.
Figure 22.11 Basic Bus Timing (Three-State Access with One Wait State)
80
T1
T2 or T3
T1
T2
o
tAD A15 to A0, IOS* tAS AS* tASD tASD tAH
tRSD2 RD (read) tACC3 D7 to D0 (read) tRDS tRDH
Note: * AS and IOS are the same pin. The function is selected by the IOSE bit in SYSCR.
Figure 22.12 Burst ROM Access Timing (Two-State Access)
81
T1 o
T2 or T3
T1
tAD A15 to A0, IOS*
AS* tRSD2 RD (read) tACC1 D7 to D0 (read) tRDS tRDH
Note: * AS and IOS are the same pin. The function is selected by the IOSE bit in SYSCR.
Figure 22.13 Burst ROM Access Timing (One-State Access)
82
(4) Timing of On-Chip Supporting Modules Tables 22.9 and 22.10 show the on-chip supporting module timing. The only on-chip supporting modules that can operate in subclock operation (o = 32.768 kHz) are the I/O ports, external interrupts (NMI and IRQ0, 1, and IRQ2), the watchdog timer, and the 8-bit timer (channels 0 and 1). Table 22.9 Timing of On-Chip Supporting Modules Condition A: VCC = 5.0 V 10%, VSS = 0 V, o = 32.768 kHz *1, 2 MHz to maximum operating frequency, Ta = -20 to +75C (regular specifications), Ta = -40 to +85C (wide-range specifications) Condition B: VCC = 4.0 V to 5.5 V, VSS = 0 V, o = 32.768 kHz *1, 2 MHz to maximum operating frequency, Ta = -20 to +75C (regular specifications), Ta = -40 to +85C (wide-range specifications) Condition C: VCC = 2.7 V to 5.5 V*2, VSS = 0 V, o = 32.768 kHz *1, 2 MHz to maximum operating frequency, Ta = -20 to +75C
Condition A Condition B Condition C 20 MHz Item I/O ports Output data delay time Input data setup time Input data hold time FRT Timer output delay time Timer input setup time Symbol Min t PWD t PRS t PRH t FTOD t FTIS -- 30 30 -- 30 30 1.5 2.5 Max 50 -- -- 50 -- -- -- -- 16 MHz Min -- 30 30 -- 30 30 1.5 2.5 Max 50 -- -- 50 -- -- -- -- 10 MHz Min -- 50 50 -- 50 50 1.5 2.5 Max 100 -- -- 100 -- -- -- -- t cyc Figure 22.16 ns Figure 22.15 Test Unit Conditions ns Figure 22.14
Timer clock input t FTCS setup time Timer clock pulse width Single edge Both edges t FTCWH t FTCWL
83
Condition A Condition B Condition C 20 MHz Item TMR Timer output delay time Symbol Min t TMOD -- 30 30 1.5 2.5 -- 4 6 0.4 -- -- -- Max 50 -- -- -- -- 50 -- -- 0.6 1.5 1.5 50 16 MHz Min -- 30 30 1.5 2.5 -- 4 6 0.4 -- -- -- Max 50 -- -- -- -- 50 -- -- 0.6 1.5 1.5 50 10 MHz Min -- 50 50 1.5 2.5 -- 4 6 0.4 -- -- -- Max 100 -- -- -- -- 100 -- -- 0.6 1.5 1.5 100 ns Figure 22.22 t Scyc t cyc ns t cyc Figure 22.20 Figure 22.21 t cyc Test Unit Conditions ns Figure 22.17 Figure 22.19 Figure 22.18
Timer reset input t TMRS setup time Timer clock input t TMCS setup time Timer clock pulse width PWM, PWMX SCI Single edge Both edges t TMCWH t TMCWL t PWOD
Pulse output delay time Input clock cycle
Asynchro- t Scyc nous Synchronous
Input clock pulse t SCKW width Input clock rise time Input clock fall time Transmit data delay time (synchronous) Receive data setup time (synchronous) Receive data hold time (synchronous) A/D Trigger input converter setup time t SCKr t SCKf t TXD
t RXS
50
--
50
--
100
--
ns
t RXH
50
--
50
--
100
--
ns
t TRGS
30
--
30
--
50
--
ns
Figure 22.23
Notes: 1. Only supporting modules that can be used in subclock operation 2. For the low-voltage F-ZTAT version, V CC = 3.0 V to 5.5 V
84
T1
T2
o
tPRS Ports 1 to 7 (read)
tPRH
tPWD Ports 1 to 6 (write)
Figure 22.14 I/O Port Input/Output Timing
o tFTOD FTOA, FTOB tFTIS FTIA, FTIB, FTIC, FTID
Figure 22.15 FRT Input/Output Timing
o tFTCS FTCI tFTCWL tFTCWH
Figure 22.16 FRT Clock Input Timing
85
o tTMOD TMO0, TMO1 TMOX
Figure 22.17 8-Bit Timer Output Timing
o tTMCS TMCI0, TMCI1 TMIX, TMIY tTMCWL tTMCWH
tTMCS
Figure 22.18 8-Bit Timer Clock Input Timing
o
tTMRS TMRI0, TMRI1 TMIX, TMIY
Figure 22.19 8-Bit Timer Reset Input Timing
o tPWOD PW15 to PW0, PWX1, PWX0
Figure 22.20 PWM, PWMX Output Timing
86
tSCKW SCK0, SCK1
tSCKr
tSCKf
tScyc
Figure 22.21 SCK Clock Input Timing
SCK0, SCK1 tTXD TxD0, TxD1 (transmit data) tRXS RxD0, RxD1 (receive data) tRXH
Figure 22.22 SCI Input/Output Timing (Synchronous Mode)
o
tTRGS ADTRG
Figure 22.23 A/D Converter External Trigger Input Timing
87
Table 22.10 I2C Bus Timing Conditions: VCC = 2.7 V to 5.5 V, VSS = 0 V, o = 5 MHz to maximum operating frequency, Ta = -20 to +75C
Item SCL clock cycle time SCL clock high pulse width SCL clock low pulse width SCL, SDA input rise time SCL, SDA input fall time SCL, SDA input spike pulse elimination time SDA input bus free time Start condition input hold time Retransmission start condition input setup time Stop condition input setup time Data input setup time Data input hold time SCL, SDA capacitive load Symbol t SCL t SCLH t SCLL t Sr t Sf t SP Min 12 3 5 -- -- -- Typ -- -- -- -- -- -- Max -- -- -- 7.5 * 300 1 Unit t cyc t cyc t cyc t cyc ns t cyc Test Conditions Notes Figure 22.24
t BUF t STAH t STAS
5 3 3
-- -- --
-- -- --
t cyc t cyc t cyc
t STOS t SDAS t SDAH Cb
3 0.5 0 --
-- -- -- --
-- -- -- 400
t cyc t cyc ns pF
Note: * 17.5tcyc can be set according to the clock selected for use by the I 2C module. For details, see section 16.4, Usage Notes.
88
SDA0, SDA1 tBUF
VIH VIL tSTAH tSCLH tSP tSTOS
tSTAS
SCL0, SCL1 P* S* tSf tSCLL tSCL tSr tSDAH Sr* tSDAS P*
Note: * S, P, and Sr indicate the following conditions. S: Start condition P: Stop condition Sr: Retransmission start condition
Figure 22.24 I2C Bus Interface Input/Output Timing (Option)
89
22.2.4
A/D Conversion Characteristics
Tables 22.11 and 22.12 list the A/D conversion characteristics. Table 22.11 A/D Conversion Characteristics (AN7 to AN0 Input: 134/266-State Conversion) Condition A: VCC = 5.0 V 10%, AVCC = 5.0 V 10% VSS = AVSS = 0 V, o = 2 MHz to maximum operating frequency, Ta = -20 to +75C (regular specifications), Ta = -40 to +85C (wide-range specifications) Condition B: VCC = 4.0 V to 5.5 V, AVCC = 4.0 V to 5.5 V VSS = AVSS = 0 V, o = 2 MHz to maximum operating frequency, Ta = -20 to +75C (regular specifications), Ta = -40 to +85C (wide-range specifications) Condition C: VCC = 2.7 V to 5.5 V*5, AVCC = 2.7 V to 5.5 V*5 VSS = AVSS = 0 V, o = 2 MHz to maximum operating frequency, Ta = -20 to +75C
Condition A 20 MHz Item Resolution Conversion time* Analog input capacitance Permissible signalsource impedance Nonlinearity error Offset error Full-scale error Quantization error Absolute accuracy
6
Condition B 16 MHz
Condition C 10 MHz
Min 10 -- -- --
Typ 10 -- -- --
Max 10 6.7 20 10*3 5*4
Min 10 -- -- --
Typ 10 -- -- --
Max 10 8.4 20 10*3 5*4
Min 10 -- -- --
Typ 10 -- -- --
Max 10 13.4 20 10*1 5*2
Unit Bits s pF k
-- -- -- -- --
-- -- -- -- --
3.0 3.5 3.5 0.5 4.0
-- -- -- -- --
-- -- -- -- --
3.0 3.5 3.5 0.5 4.0
-- -- -- -- --
-- -- -- -- --
7.0 7.5 7.5 0.5 8.0
LSB LSB LSB LSB LSB
Notes: *1 *2 *3 *4 *5 *6 90
When 4.0 V AVCC 5.5 V When 2.7 V AVCC < 4.0 V When conversion time 11. 17 s (CKS = 1 and o 12 MHz, or CKS = 0) When conversion time < 11. 17 s (CKS = 1 and o > 12 MHz) For the low-voltage F-ZTAT version, V CC = 3.0 V to 5.5 V and AVCC = 3.0 V to 5.5 V. At the maximum operating frequency in single mode
Table 22.12 A/D Conversion Characteristics (CIN7 to CIN0 Input: 134/266-State Conversion) Condition A: VCC = 5.0 V 10%, AVCC = 5.0 V 10% VSS = AVSS = 0 V, o = 2 MHz to maximum operating frequency, Ta = -20 to +75C (regular specifications), Ta = -40 to +85C (wide-range specifications) Condition B: VCC = 4.0 V to 5.5 V, AVCC = 4.0 V to 5.5 V VSS = AVSS = 0 V, o = 2 MHz to maximum operating frequency, Ta = -20 to +75C (regular specifications), Ta = -40 to +85C (wide-range specifications) Condition C: VCC = 2.7 V to 5.5 V*5, AVCC = 2.7 V to 5.5 V*5 VSS = AVSS = 0 V, o = 2 MHz to maximum operating frequency, Ta = -20 to +75C
Condition A 20 MHz Item Resolution Conversion time* Analog input capacitance Permissible signalsource impedance Nonlinearity error Offset error Full-scale error Quantization error Absolute accuracy
6
Condition B 16 MHz
Condition C 10 MHz
Min 10 -- -- --
Typ 10 -- -- --
Max 10 6.7 20 10*3 5*4
Min 10 -- -- --
Typ 10 -- -- --
Max 10 8.4 20 10*3 5*4
Min 10 -- -- --
Typ 10 -- -- --
Max 10 13.4 20 10*1 5*2
Unit Bits s pF k
-- -- -- -- --
-- -- -- -- --
5.0 5.5 5.5 0.5 6.0
-- -- -- -- --
-- -- -- -- --
5.0 5.5 5.5 0.5 6.0
-- -- -- -- --
-- -- -- -- --
11.0 11.5 11.5 0.5 12.0
LSB LSB LSB LSB LSB
Notes: *1 *2 *3 *4 *5 *6
When 4.0 V AVCC 5.5 V When 2.7 V AVCC < 4.0 V When conversion time 11. 17 s (CKS = 1 and o 12 MHz, or CKS = 0) When conversion time < 11. 17 s (CKS = 1 and o > 12 MHz) For the low-voltage F-ZTAT version, V CC = 3.0 V to 5.5 V and AVCC = 3.0 V to 5.5 V. At the maximum operating frequency in single mode
91
22.2.5
Flash Memory Characteristics
Table 22.13 shows the flash memory characteristics. Table 22.13 Flash Memory Characteristics Conditions (5 V version): VCC = 5.0 V 10%, VSS = 0 V, Ta = 0 to +75C (regular specifications), Ta = 0 to +85C (wide-range specifications) Conditions for low-voltage version:VCC = 3.0 V to 3.6 V, V SS = 0 V, Ta = 0 to +75C (Programming/erasing operating temperature)
Item Programming time*1 *2 *4 Erase time* 1 *3 *5 Reprogramming count Programming Wait time after SWE-bit setting* 1 Wait time after PSU-bit setting* 1 Wait time after P-bit setting * 1 *4 Wait time after P-bit clear*1 Wait time after PSU-bit clear* 1 Wait time after PV-bit setting * 1 Wait time after dummy write* 1 Wait time after PV-bit clear * 1 Maximum programming count* 1 *4 *5 Symbol tP tE NWEC x y z N Min -- -- -- 10 50 150 10 10 4 2 4 -- Typ 10 100 -- -- -- -- -- -- -- -- -- -- Max 200 1200 100 -- -- 200 -- -- -- -- -- 1000 Unit ms/ 32 bytes ms/ block Times s s s s s s s s Times z = 200 s Test Condition
92
Item Erase Wait time after SWE-bit setting* 1 Wait time after ESU-bit setting* 1 Wait time after E-bit setting * 1 *6 Wait time after E-bit clear*1 Wait time after ESU-bit clear* 1 Wait time after EV-bit setting * 1 Wait time after dummy write* 1 Wait time after EV-bit clear * 1 Maximum erase count* 1 *6 *7
Symbol x y z N
Min 10 200 5 10 10 20 2 5 --
Typ -- -- -- -- -- -- -- -- --
Max -- -- 10 -- -- -- -- -- 120
Unit s s ms s s s s s Times
Test Condition
z = 10 ms
Notes: *1 Set the times according to the program/erase algorithms. *2 Programming time per 32 bytes (Shows the total period for which the P-bit in the flash memory control register (FLMCR1) is set. It does not include the programming verification time.) *3 Block erase time (Shows the total period for which the E-bit in FLMCR1 is set. It does not include the erase verification time.) *4 Maximum programming time (tP (max) = wait time after P-bit setting (z) x maximum programming count (N)) *5 Number of times when the wait time after P-bit setting (z) = 200 s. The number of writes should be set according to the actual set value of z to allow programming within the maximum programming time (tP). *6 Maximum erase time (tE (max) = Wait time after E-bit setting (z) x maximum erase count (N)) *7 Number of times when the wait time after E-bit setting (z) = 10 ms. The number of erases should be set according to the actual set value of z to allow erasing within the maximum erase time (tE).
93
22.2.6
Usage Note
The F-ZTAT and mask ROM versions have been confirmed as fully meeting the reference values for electrical characteristics shown in this manual. However, actual performance figures, operating margins, noise margins, and other properties may vary due to differences in the manufacturing process, on-chip ROM, layout patterns, etc. When system evaluation testing is carried out using the F-ZTAT version, the same evaluation tests should also be conducted for the mask ROM version when changing over to that version.
94
22.3
22.3.1
Electrical Characteristics [H8S/2128S Series]
Absolute Maximum Ratings
Table 22.14 lists the absolute maximum ratings. Table 22.14 Absolute Maximum Ratings
Item Power supply voltage * Power supply voltage * (3 V version)
1 1
Symbol VCC VCC VCL Vin Vin Vin Vin AVCC AVCC VAN Topr
Value -0.3 to +7.0 -0.3 to +4.3 -0.3 to +4.3 -0.3 to VCC +0.3 -0.3 to VCC +0.3 -0.3 V to lower of voltages V CC +0.3 and AVCC +0.3 -0.3 to AVCC +0.3 -0.3 to +7.0 -0.3 to +4.3 -0.3 to AVCC +0.3 Regular specifications: -20 to +75 Wide-range specifications: -40 to +85
Unit V V V V V V V V V V C C C
Power supply voltage * 2 (VCL version) Input voltage (except ports 6, 7) Input voltage (CIN input not selected for port 6) Input voltage (CIN input selected for port 6) Input voltage (port 7) Analog power supply voltage Analog power supply voltage (3 V version) Analog input voltage Operating temperature
Storage temperature
Tstg
-55 to +125
Cautions: 1. Permanent damage to the chip may result if absolute maximum ratings are exceeded. 2. Never apply more than 7.0 V to any of the pins of the 5 V or 4 V version or 4.3 V to any of the pins of the 3 V version. Notes: *1 Power supply voltage for VCC1 pin Never exceed the maximum rating of V CL in the low-power version (3 V version) because both the V CC1 and VCL pins are connected to the VCC power supply. *2 It is an operating power supply voltage pin on the chip. Never apply power supply voltage to the V CL pin in the 5 V or 4 V version. Always connect an external capacitor between the V CL pin and ground for internal voltage stabilization.
95
22.3.2
DC Characteristics
Table 22.15 lists the DC characteristics. Table 22.16 lists the permissible output currents. Table 22.15 DC Characteristics (1) Conditions: VCC = 5.0 V 10%, AVCC*1 = 5.0 V 10%, VSS = AVSS*1 = 0 V, Ta = -20 to +75C (regular specifications), Ta = -40 to +85C (wide-range specifications)
Item Symbol Min Typ -- -- -- Max -- Unit V Test Conditions
Schmitt P67 to P60 * 2 * 5, (1) VT- 1.0 * 3 *8 trigger input IRQ2 to IRQ0 + VT -- voltage + - VT - VT 0.4 Input high voltage RES, STBY, NMI, MD1, MD0 EXTAL Port 7 Input pins except (1) and (2) above Input low voltage RES, STBY, MD1, MD0 NMI, EXTAL Input pins except (1) and (3) above Output high All output pins voltage (except P47, and P52* 4) P47, P52* Output low voltage Input leakage current
4
VCC x 0.7 V -- V
(2)
VIH
VCC - 0.7 -- VCC x 0.7 -- VCC x 0.7 -- VCC x 0.7 --
VCC +0.3 V VCC +0.3 V AVCC +0.3 V
VCC +0.3 V 0.5 0.8 V V
(3)
VIL
-0.3 -0.3 -0.3
-- -- --
VCC x 0.2 V -- -- -- 0.4 1.0 10.0 1.0 1.0 V V V V V A A A Vin = 0.5 to AVCC - 0.5 V I OH = -200 A I OH = -1 mA I OH = -200 A I OL = 1.6 mA I OL = 10 mA Vin = 0.5 to VCC - 0.5 V
VOH
VCC - 0.5 -- 3.5 2.0 -- -- -- -- -- -- --
All output pins Ports 1 to 3 RES STBY, NMI, MD1, MD0 Port 7
VOL Iin
-- -- -- -- --
96
Item Three-state Ports 1 to 6 leakage current (off state) Input pull-up MOS current Ports 1 to 3
Symbol ITSI
Min --
Typ --
Max 1.0
Unit A
Test Conditions Vin = 0.5 to VCC - 0.5 V
-I P
30
--
300
A
Vin = 0 V
Input RES capacitance NMI P52, P47, P24, P23 Input pins except (4) above Current Normal operation dissipation * 6 Sleep mode Standby mode* 7
(4)
Cin
-- -- -- --
-- -- -- -- 45 30 1.0 -- 1.5 0.01 -- -- --
80 50 20 15 55 41 5.0 20.0 3.0 5.0 5.5 5.5 --
pF pF pF pF mA mA A A mA A V V V
Vin = 0 V f = 1 MHz Ta = 25C
I CC
-- -- -- --
f = 20 MHz f = 20 MHz Ta 50C 50C < Ta
Analog power supply current
During A/D conversion Idle
AlCC
-- --
AVCC = 2.0 V to 5.5 V Operating Idle/not used
Analog power supply voltage* 1
AVCC
4.5 2.0
RAM standby voltage
VRAM
2.0
Notes: *1 Do not leave the AVCC, and AVSS pins open even if the A/D converter is not used. Even if the A/D converter is not used, apply a value in the range 2.0 V to 5.5 V to AV CC by connection to the power supply (V CC), or some other method. *2 P67 to P60 include supporting module inputs multiplexed on those pins. *3 IRQ2 includes the ADTRG signal multiplexed on that pin. *4 In the H8S/2128S Series, P52/SCK0/SCL0 and P47/SDA0 are NMOS push-pull outputs. An external pull-up resistor is necessary to provide high-level output from SCL0 and SDA0 (ICE = 1). In the H8S/2128S Series, P52/SCK0 and P47 (ICE = 0) high levels are driven by NMOS.
97
*5 The upper limit of the port 6 applied voltage is VCC + 0.3 V when CIN input is not selected, and the lower of VCC + 0.3 V and AVCC + 0.3 V when CIN input is selected. When a pin is in output mode, the output voltage is equivalent to the applied voltage. *6 Current dissipation values are for V IH min = VCC - 0.2 V and VIL max = 0.2 V with all output pins unloaded and the on-chip pull-up MOSs in the off state. *7 The values are for VRAM VCC < 4.5 V, VIH min = VCC - 0.2 V, and VIL max = 0.2 V. *8 The VT+ to V T- specification does not apply to IRQ2 (ADTRG) to IRQ0.
98
Table 22.15 DC Characteristics (2) Conditions: VCC = 4.0 V to 5.5 V, AVCC*1 = 4.0 V to 5.5 V, VSS = AVSS*1 = 0 V, Ta = -20 to +75C (regular specifications), Ta = -40 to +85C (wide-range specifications)
Item Symbol Min Typ -- -- -- -- -- -- Max -- Unit V Test Conditions VCC = 4.5 V to 5.5 V
Schmitt P67 to P60 * 2 * 5, (1) VT- 1.0 * 3 *8 trigger input IRQ2 to IRQ0 + VT -- voltage + - VT - VT 0.4 VT VT RES, STBY, NMI, MD1, MD0 EXTAL Port 7 Input pins except (1) and (2) above Input low voltage RES, STBY, MD1, MD0 NMI, EXTAL Input pins except (1) and (3) above Output high All output pins voltage (except P47, and P52* 4) VOH (3) VIL
- + + -
VCC x 0.7 V -- -- V V
0.8 -- 0.3
VCC < 4.5 V
VCC x 0.7 V -- V
VT - VT Input high voltage (2) VIH
VCC - 0.7 -- VCC x 0.7 -- VCC x 0.7 -- VCC x 0.7 -- -0.3 -0.3 -0.3 -- -- --
VCC +0.3 V VCC +0.3 V AVCC +0.3 V
VCC +0.3 V 0.5 0.8 V V
VCC x 0.2 V -- -- V V I OH = -200 A I OH = -1 mA, VCC= 4.5 V to 5.5 V I OH = -1 mA, VCC < 4.5 V I OH = -200 A I OL = 1.6 mA I OL = 10 mA
VCC - 0.5 -- 3.5 --
3.0 P47, P52* 4 Output low voltage All output pins Ports 1 to 3 VOL 1.5 -- --
-- -- -- --
-- -- 0.4 1.0
V V V V
99
Item Input leakage current RES STBY, NMI, MD1, MD0 Port 7 Three-state Ports 1 to 6 leakage current (off state) Input pull-up MOS current Ports 1 to 3
Symbol Iin
Min -- -- --
Typ -- -- -- --
Max 10.0 1.0 1.0 1.0
Unit A A A A
Test Conditions Vin = 0.5 to VCC - 0.5 V Vin = 0.5 to AVCC - 0.5 V Vin = 0.5 to VCC - 0.5 V
ITSI
--
-I P
30
--
300
A
Vin = 0 V, VCC = 4.5 V to 5.5 V Vin = 0 V, VCC < 4.5 V Vin = 0 V, f = 1 MHz, Ta = 25C
20 (4) Cin -- -- -- -- I CC -- -- -- --
-- -- -- -- -- 35 25 1.0 -- 1.5 0.01 -- -- --
200 80 50 20 15 44 34 5.0 20.0 3.0 5.0 5.5 5.5 --
A pF pF pF pF mA mA A A mA A V V V
Input RES capacitance NMI P52, P47, P24, P23 Input pins except (4) above Current Normal operation dissipation * 6 Sleep mode Standby mode*
7
f = 16 MHz f = 16 MHz Ta 50C 50C < Ta
Analog power supply current
During A/D conversion Idle
AlCC
-- --
AVCC = 2.0 V to 5.5 V Operating Idle/not used
Analog power supply voltage* 1
AVCC
4.0 2.0
RAM standby voltage
VRAM
2.0
Notes: *1 Do not leave the AVCC, and AVSS pins open even if the A/D converter is not used. Even if the A/D converter is not used, apply a value in the range 2.0 V to 5.5 V to AV CC by connection to the power supply (V CC), or some other method. *2 P67 to P60 include supporting module inputs multiplexed on those pins. *3 IRQ2 includes the ADTRG signal multiplexed on that pin. *4 In the H8S/2128S Series, P52/SCK0/SCL0 and P47/SDA0 are NMOS push-pull outputs. 100
*5
*6 *7 *8
An external pull-up resistor is necessary to provide high-level output from SCL0 and SDA0 (ICE = 1). In the H8S/2128S Series, P52/SCK0 and P47 (ICE = 0) high levels are driven by NMOS. The upper limit of the port 6 applied voltage is V CC + 0.3 V when CIN input is not selected, and the lower of VCC + 0.3 V and AVCC + 0.3 V when CIN input is selected. When a pin is in output mode, the output voltage is equivalent to the applied voltage. Current dissipation values are for V IH min = VCC - 0.2 V and VIL max = 0.2 V with all output pins unloaded and the on-chip pull-up MOSs in the off state. The values are for VRAM VCC < 4.0 V, VIH min = VCC - 0.2 V, and VIL max = 0.2 V. The VT+ to V T- specification does not apply to IRQ2 (ADTRG) to IRQ0.
101
Table 22.15 DC Characteristics (3) Conditions (Mask ROM version): VCC = 2.7 V to 3.6 V, AVCC*1 = 2.7 V to 3.6 V, VSS = AVSS*1 = 0 V, Ta = -20 to +75C
Item Symbol Min Typ Max -- Unit V Test Conditions
Schmitt P67 to P60 * 2 * 5, (1) VT- VCC x 0.2 -- 38 trigger input IRQ2 to IRQ0* * + VT -- -- voltage + - VT - VT VCC x 0.05 -- Input high voltage RES, STBY, NMI, MD1, MD0 EXTAL Port 7 Input pins except (1) and (2) above Input low voltage RES, STBY, MD1, MD0 NMI, EXTAL, input pins except (1) and (3) above Output high All output pins voltage (except P47, and P52* 4) P47, P52* 4 Output low voltage Input leakage current All output pins Ports 1 to 3 RES STBY, NMI, MD1, MD0 Port 7 Iin VOL VOH (3) VIL (2) VIH VCC x 0.9 -- VCC x 0.7 -- VCC x 0.7 -- VCC x 0.7 -- -0.3 -0.3 -- --
VCC x 0.7 V -- V
VCC +0.3 V VCC +0.3 V AVCC +0.3 V
VCC +0.3 V VCC x 0.1 V VCC x 0.2 V
VCC - 0.5 -- VCC - 1.0 -- 0.5 -- -- -- -- -- -- -- -- -- -- --
-- -- -- 0.4 1.0 10.0 1.0 1.0
V V V V V A A A
I OH = -200 A I OH = -1 mA I OH = -200 A I OL = 1.6 mA I OL = 5 mA Vin = 0.5 to VCC - 0.5 V Vin = 0.5 to AVCC - 0.5 V
102
Item Three-state Ports 1 to 6 leakage current (off state) Input pull-up MOS current Ports 1 to 3
Symbol ITSI
Min --
Typ --
Max 1.0
Unit A
Test Conditions Vin = 0.5 to VCC - 0.5 V
-I P
5
--
150
A
Vin = 0 V, VCC = 2.7 V to 3.6 V Vin = 0 V, f = 1 MHz, Ta = 25C
Input RES capacitance NMI P52, P47, P24, P23 Input pins except (4) above Current Normal operation dissipation * 6 Sleep mode Standby mode* 7
(4)
Cin
-- -- -- --
-- -- -- -- 24 15 1.0 -- 1.5 0.01 -- -- --
80 50 20 15 30 23 5.0 20.0 3.0 5.0 3.6 3.6 --
pF pF pF pF mA mA A A mA A V V V
I CC
-- -- -- --
f = 10 MHz f = 10 MHz Ta 50C 50C < Ta
Analog power supply current
During A/D conversion Idle
AlCC
-- --
AVCC = 2.0 V to 3.6 V Operating Idle/not used
Analog power supply voltage* 1
AVCC
2.7 2.0
RAM standby voltage
VRAM
2.0
Notes: *1 Do not leave the AVCC, and AVSS pins open even if the A/D converter is not used. Even if the A/D converter is not used, apply a value in the range 2.0 V to 3.6 V to AV CC by connection to the power supply (V CC), or some other method. *2 P67 to P60 include supporting module inputs multiplexed on those pins. *3 IRQ2 includes the ADTRG signal multiplexed on that pin. *4 In the H8S/2128S Series, P52/SCK0/SCL0 and P47/SDA0 are NMOS push-pull outputs. An external pull-up resistor is necessary to provide high-level output from SCL0 and SDA0 (ICE = 1). In the H8S/2128S Series, P52/SCK0 and P47 (ICE = 0) high levels are driven by NMOS.
103
*5 The upper limit of the port 6 applied voltage is V CC + 0.3 V when CIN input is not selected, and the lower of VCC + 0.3 V and AVCC + 0.3 V when CIN input is selected. When a pin is in output mode, the output voltage is equivalent to the applied voltage. *6 Current dissipation values are for V IH min = VCC - 0.2 V and VIL max = 0.2 V with all output pins unloaded and the on-chip pull-up MOSs in the off state. *7 The values are for VRAM VCC < 2.7 V, VIH min = VCC - 0.2 V, and VIL max = 0.2 V. *8 The VT+ to V T- specification does not apply to IRQ2 (ADTRG) to IRQ0.
104
Table 22.16 Permissible Output Currents Conditions: VCC = 4.0 V to 5.5 V, VSS = 0 V, Ta = -20 to +75C (regular specifications), Ta = -40 to +85C (wide-range specifications)
Item Permissible output low current (per pin) SCL1, SCL0, SDA1, SDA0 Ports 1, 2, 3 Other output pins Permissible output low current (total) Total of ports 1, 2, and 3 IOL Total of all output pins, including the above All output pins Total of all output pins -I OH -IOH Symbol Min I OL -- -- -- -- -- -- -- Typ -- -- -- -- -- -- -- Max 20 10 2 80 120 2 40 Unit mA mA mA mA mA mA mA
Permissible output high current (per pin) Permissible output high current (total)
Notes: 1. To protect chip reliability, do not exceed the output current values in table 22.16. 2. When driving a Darlington pair or LED, always insert a current-limiting resistor in the output line, as show in figures 22.25 and 22.26.
Table 22.16 Permissible Output Currents (cont) Conditions: VCC = 2.7 V to 3.6 V, VSS = 0 V, Ta = -20 to +75C
Item Permissible output low current (per pin) SCL1, SCL0, SDA1, SDA0 Ports 1, 2, 3 Other output pins Permissible output low current (total) Total of ports 1, 2, and 3 IOL Total of all output pins, including the above All output pins Total of all output pins -I OH -IOH Symbol Min I OL -- -- -- -- -- -- -- Typ -- -- -- -- -- -- -- Max 10 2 1 40 60 2 30 Unit mA mA mA mA mA mA mA
Permissible output high current (per pin) Permissible output high current (total)
Notes: 1. To protect chip reliability, do not exceed the output current values in table 22.16. 2. When driving a Darlington pair or LED, always insert a current-limiting resistor in the output line, as show in figures 22.25 and 22.26.
105
Table 22.17 Bus Drive Characteristics Conditions: VCC = 4.0 V to 5.5 V, VCC = 2.7 to 3.6 V (3 V version), VSS = 0 V Applicable Pins: SCL1, SCL0, SDA1, SDA0 (bus drive function selected)
Item Schmitt trigger input voltage Input high voltage Input low voltage Output low voltage Symbol VT VT
- +
Min VCC x 0.3 -- VCC x 0.7 -0.5 -- -- --
Typ -- -- -- -- -- -- -- -- --
Max -- VCC x 0.7 VCC + 0.5 VCC x 0.3 0.8 0.5 0.4 20 1.0 250
Unit V
Test Conditions
VIH VIL VOL
V
V
I OL = 16 mA, VCC = 4.5 V to 5.5 V I OL = 8 mA I OL = 3 mA
Input capacitance
Cin
-- --
pF A ns
Vin = 0 V, f = 1 MHz, Ta = 25C Vin = 0.5 to VCC - 0.5 V
Three-state leakage | ITSI | current (off state) SCL, SDA output fall time t Of
20 + 0.1Cb --
This chip
2 k Port
Darlington pair
Figure 22.25 Darlington Pair Drive Circuit (Example)
106
This chip
600 Ports 1 to 3 LED
Figure 22.26 LED Drive Circuit (Example) 22.3.3 AC Characteristics
Figure 22.3 shows the test conditions for the AC characteristics.
VCC RL Chip output pin C = 30 pF: All ports RL = 2.4 k RH = 12 k I/O timing test levels * Low level: 0.8 V * High level: 2.0 V
C
RH
Figure 22.27 Output Load Circuit
107
(1) Clock Timing Table 22.18 shows the clock timing. The clock timing specified here covers clock (o) output and clock pulse generator (crystal) and external clock input (EXTAL pin) oscillation settling times. For details of external clock input (EXTAL pin and EXCL pin) timing, see section 20, Clock Pulse Generator. Table 22.18 Clock Timing Condition A: VCC = 5.0 V 10%, VSS = 0 V, o = 2 MHz to maximum operating frequency, Ta = -20 to +75C (regular specifications), Ta = -40 to +85C (wide-range specifications) Condition B: VCC = 4.0 V to 5.5 V, VSS = 0 V, o = 2 MHz to maximum operating frequency, Ta = -20 to +75C (regular specifications), Ta = -40 to +85C (wide-range specifications) Condition C: VCC = 2.7 V to 3.6 V, VSS = 0 V, o = 2 MHz to maximum operating frequency, Ta = -20 to +75C
Condition A 20 MHz Item Clock cycle time Clock high pulse width Clock low pulse width Clock rise time Clock fall time Oscillation settling time at reset (crystal) Oscillation settling time in software standby (crystal) External clock output stabilization delay time Symbol t cyc t CH t CL t Cr t Cf t OSC1 Min 50 17 17 -- -- 10 Max 500 -- -- 8 8 -- Condition B 16 MHz Min 62.5 20 20 -- -- 10 Max 500 -- -- 10 10 -- Condition C 10 MHz Min 100 30 30 -- -- 20 Max 500 -- -- 20 20 -- Unit ns ns ns ns ns ms Figure 22.29 Figure 22.30 Test Conditions Figure 22.28 Figure 22.28
t OSC2
8
--
8
--
8
--
ms
t DEXT
500
--
500
--
500
--
s
108
tcyc tCH o tCL tCr tCf
Figure 22.28 System Clock Timing
EXTAL tDEXT VCC tDEXT
STBY tOSC1 RES tOSC1
o
Figure 22.29 Oscillation Settling Timing
o
NMI
IRQi (i = 0, 1, 2) tOSC2
Figure 22.30 Oscillation Setting Timing (Exiting Software Standby Mode)
109
(2) Control Signal Timing Table 22.19 shows the control signal timing. The only external interrupts that can operate on the subclock (o = 32.768 kHz) are NMI and IRQ0, 1, and IRQ2. Table 22.19 Control Signal Timing Condition A: VCC = 5.0 V 10%, VSS = 0 V, o = 32.768 kHz, 2 MHz to maximum operating frequency, Ta = -20 to +75C (regular specifications), Ta = -40 to +85C (wide-range specifications) Condition B: VCC = 4.0 V to 5.5 V, VSS = 0 V, o = 32.768 kHz, 2 MHz to maximum operating frequency, Ta = -20 to +75C (regular specifications), Ta = -40 to +85C (wide-range specifications) Condition C: VCC = 2.7 V to 3.6 V, VSS = 0 V, o = 32.768 kHz, 2 MHz to maximum operating frequency, Ta = -20 to +75C
Condition A 20 MHz Item RES setup time RES pulse width NMI setup time (NMI) NMI hold time (NMI) NMI pulse width (exiting software standby mode) IRQ setup time (IRQ2 to IRQ0) IRQ hold time (IRQ2 to IRQ0) IRQ pulse width (IRQ2 to IRQ0) (exiting software standby mode) Symbol t RESS t RESW t NMIS t NMIH t NMIW Min 200 20 150 10 200 Max -- -- -- -- -- Condition B 16 MHz Min 200 20 150 10 200 Max -- -- -- -- -- Condition C 10 MHz Min 300 20 250 10 200 Max -- -- -- -- -- Unit ns t cyc ns ns ns Figure 22.32 Test Conditions Figure 22.31
t IRQS t IRQH t IRQW
150 10 200
-- -- --
150 10 200
-- -- --
250 10 200
-- -- --
ns ns ns
110
o tRESS RES tRESW tRESS
Figure 22.31 Reset Input Timing
o
tNMIS NMI tNMIW
tNMIH
IRQi (i = 2 to 0) tIRQS IRQ Edge input tIRQS IRQ Level input
tIRQW tIRQH
Figure 22.32 Interrupt Input Timing
111
(3) Bus Timing Table 22.20 shows the bus timing. Operation in external expansion mode is not guaranteed when operating on the subclock (o = 32.768 kHz). Table 22.20 Bus Timing Condition A: VCC = 5.0 V 10%, VSS = 0 V, o = 2 MHz to maximum operating frequency, Ta = -20 to +75C (regular specifications), Ta = -40 to +85C (wide-range specifications) Condition B: VCC = 4.0 V to 5.5 V, VSS = 0 V, o = 2 MHz to maximum operating frequency, Ta = -20 to +75C (regular specifications), Ta = -40 to +85C (wide-range specifications) Condition C: VCC = 2.7 V to 3.6 V, VSS = 0 V, o = 2 MHz to maximum operating frequency, Ta = -20 to +75C
Condition A 20 MHz Item Address delay time Address setup time Address hold time CS delay time (IOS) AS delay time RD delay time 1 RD delay time 2 Read data setup time Read data hold time Symbol Min t AD t AS t AH t CSD t ASD t RSD1 t RSD2 t RDS t RDH -- Max 20 Min -- Condition B 16 MHz Max 30 Min -- Condition C 10 MHz Max 40 Test Unit Conditions ns ns ns ns ns ns ns ns ns ns ns Figure 22.33 to figure 22.37
0.5 x -- t cyc - 15 0.5 x -- t cyc - 10 -- -- -- -- 15 0 -- -- 20 30 30 30 -- -- 1.0 x t cyc - 30 1.5 x t cyc - 25
0.5 x -- t cyc - 20 0.5 x -- t cyc - 15 -- -- -- -- 20 0 -- -- 30 45 45 45 -- -- 1.0 x t cyc - 40 1.5 x t cyc - 35
0.5 x -- t cyc - 30 0.5 x -- t cyc - 20 -- -- -- -- 35 0 -- -- 40 60 60 60 -- -- 1.0 x t cyc - 60 1.5 x t cyc - 50
Read data t ACC1 access time 1 Read data t ACC2 access time 2 112
Condition A 20 MHz Item Symbol Min -- -- -- -- -- Max 2.0 x t cyc - 30 2.5 x t cyc - 25 3.0 x t cyc - 30 30 30
Condition B 16 MHz Min -- -- -- -- -- Max 2.0 x t cyc - 40 2.5 x t cyc - 35 3.0 x t cyc - 40 45 45
Condition C 10 MHz Min -- -- -- -- -- Max 2.0 x t cyc - 60 2.5 x t cyc - 50 3.0 x t cyc - 60 60 60 Test Unit Conditions ns ns ns ns ns ns ns ns ns ns ns ns Figure 22.33 to figure 22.37
Read data t ACC3 access time 3 Read data t ACC4 access time 4 Read data t ACC5 access time 5 WR delay time 1 WR delay time 2 WR pulse width 1 WR pulse width 2 Write data delay time Write data setup time Write data hold time WAIT setup time WAIT hold time t WRD1 t WRD2 t WSW1 t WSW2 t WDD t WDS t WDH t WTS t WTH
1.0 x -- t cyc - 20 1.5 x -- t cyc - 20 -- 0 10 30 5 30 -- -- -- --
1.0 x -- t cyc - 30 1.5 x -- t cyc - 30 -- 0 15 45 5 45 -- -- -- --
1.0x -- t cyc - 40 1.5 x -- t cyc - 40 -- 0 20 60 10 60 -- -- -- --
113
T1
T2
o tAD A15 to A0, IOS* tCSD AS* tAS tAH tASD tASD
tRSD1 RD (read) tAS
tACC2
tRSD2
tACC3 D7 to D0 (read)
tRDS
tRDH
tWRD2 WR (write) tAS tWDD D7 to D0 (write) tWSW1
tWRD2 tAH tWDH
Note: * AS and IOS are the same pin. The function is selected by the IOSE bit in SYSCR.
Figure 22.33 Basic Bus Timing (Two-State Access)
114
T1
T2
T3
o
tAD A15 to A0, IOS* tCSD AS* tAS tASD tASD tAH
tRSD1 RD (read) tAS
tACC4
tRSD2
tACC5 D7 to D0 (read)
tRDS
tRDH
tWRD1 WR (write) tWDD tWDS D7 to D0 (write) tWSW2
tWRD2 tAH tWDH
Note: * AS and IOS are the same pin. The function is selected by the IOSE bit in SYSCR.
Figure 22.34 Basic Bus Timing (Three-State Access)
115
T1
T2
TW
T3
o
A15 to A0, IOS* AS*
RD (read) D7 to D0 (read) WR (write) D7 to D0 (write) tWTS tWTH WAIT tWTS tWTH
Note: * AS and IOS are the same pin. The function is selected by the IOSE bit in SYSCR.
Figure 22.35 Basic Bus Timing (Three-State Access with One Wait State)
116
T1
T2 or T3
T1
T2
o
tAD A15 to A0, IOS* tAS AS* tASD tASD tAH
tRSD2 RD (read) tACC3 D7 to D0 (read) tRDS tRDH
Note: * AS and IOS are the same pin. The function is selected by the IOSE bit in SYSCR.
Figure 22.36 Burst ROM Access Timing (Two-State Access)
117
T1 o
T2 or T3
T1
tAD A15 to A0, IOS*
AS* tRSD2 RD (read) tACC1 D7 to D0 (read) tRDS tRDH
Note: * AS and IOS are the same pin. The function is selected by the IOSE bit in SYSCR.
Figure 22.37 Burst ROM Access Timing (One-State Access)
118
(4) Timing of On-Chip Supporting Modules Tables 22.21 and 22.22 show the on-chip supporting module timing. The only on-chip supporting modules that can operate in subclock operation (o = 32.768 kHz) are the I/O ports, external interrupts (NMI and IRQ0, 1, and IRQ2), the watchdog timer, and the 8-bit timer (channels 0 and 1). Table 22.21 Timing of On-Chip Supporting Modules Condition A: VCC = 5.0 V 10%, VSS = 0 V, o = 32.768 kHz*, 2 MHz to maximum operating frequency, Ta = -20 to +75C (regular specifications), Ta = -40 to +85C (wide-range specifications) Condition B: VCC = 4.0 V to 5.5 V, VSS = 0 V, o = 32.768 kHz*, 2 MHz to maximum operating frequency, Ta = -20 to +75C (regular specifications), Ta = -40 to +85C (wide-range specifications) Condition C: VCC = 2.7 V to 3.6 V, VSS = 0 V, o = 32.768 kHz*, 2 MHz to maximum operating frequency, Ta = -20 to +75C
Condition A Condition B Condition C 20 MHz Item I/O ports Output data delay time Input data setup time Input data hold time FRT Timer output delay time Timer input setup time Symbol Min t PWD t PRS t PRH t FTOD t FTIS -- 30 30 -- 30 30 1.5 2.5 Max 50 -- -- 50 -- -- -- -- 16 MHz Min -- 30 30 -- 30 30 1.5 2.5 Max 50 -- -- 50 -- -- -- -- 10 MHz Min -- 50 50 -- 50 50 1.5 2.5 Max 100 -- -- 100 -- -- -- -- t cyc Figure 22.40 ns Figure 22.39 Test Unit Conditions ns Figure 22.38
Timer clock input t FTCS setup time Timer clock pulse width Single edge Both edges t FTCWH t FTCWL
119
Condition A Condition B Condition C 20 MHz Item TMR Timer output delay time Symbol Min t TMOD -- 30 30 1.5 2.5 -- 4 6 0.4 -- -- -- Max 50 -- -- -- -- 50 -- -- 0.6 1.5 1.5 50 16 MHz Min -- 30 30 1.5 2.5 -- 4 6 0.4 -- -- -- Max 50 -- -- -- -- 50 -- -- 0.6 1.5 1.5 50 10 MHz Min -- 50 50 1.5 2.5 -- 4 6 0.4 -- -- -- Max 100 -- -- -- -- 100 -- -- 0.6 1.5 1.5 100 ns Figure 22.46 t Scyc t cyc ns t cyc Figure 22.44 Figure 22.45 t cyc Test Unit Conditions ns Figure 22.41 Figure 22.43 Figure 22.42
Timer reset input t TMRS setup time Timer clock input t TMCS setup time Timer clock pulse width PWM, PWMX SCI Single edge Both edges t TMCWH t TMCWL t PWOD
Pulse output delay time Input clock cycle
Asynchro- t Scyc nous Synchronous
Input clock pulse t SCKW width Input clock rise time Input clock fall time Transmit data delay time (synchronous) Receive data setup time (synchronous) Receive data hold time (synchronous) A/D Trigger input converter setup time t SCKr t SCKf t TXD
t RXS
50
--
50
--
100
--
ns
t RXH
50
--
50
--
100
--
ns
t TRGS
30
--
30
--
50
--
ns
Figure 22.47
Note: * Only supporting modules that can be used in subclock operation
120
T1
T2
o
tPRS Ports 1 to 7 (read)
tPRH
tPWD Ports 1 to 6 (write)
Figure 22.38 I/O Port Input/Output Timing
o tFTOD FTOA, FTOB tFTIS FTIA, FTIB, FTIC, FTID
Figure 22.39 FRT Input/Output Timing
o tFTCS FTCI tFTCWL tFTCWH
Figure 22.40 FRT Clock Input Timing
121
o tTMOD TMO0, TMO1 TMOX
Figure 22.41 8-Bit Timer Output Timing
o tTMCS TMCI0, TMCI1 TMIX, TMIY tTMCWL tTMCWH
tTMCS
Figure 22.42 8-Bit Timer Clock Input Timing
o
tTMRS TMRI0, TMRI1 TMIX, TMIY
Figure 22.43 8-Bit Timer Reset Input Timing
o tPWOD PW15 to PW0, PWX1, PWX0
Figure 22.44 PWM, PWMX Output Timing
122
tSCKW SCK0, SCK1
tSCKr
tSCKf
tScyc
Figure 22.45 SCK Clock Input Timing
SCK0, SCK1 tTXD TxD0, TxD1 (transmit data) tRXS RxD0, RxD1 (receive data) tRXH
Figure 22.46 SCI Input/Output Timing (Synchronous Mode)
o
tTRGS ADTRG
Figure 22.47 A/D Converter External Trigger Input Timing
123
Table 22.22 I2C Bus Timing Conditions: VCC = 4.0 V to 5.5 V, VCC = 2.7 V to 3.6 V (3 V version), VSS = 0 V, o = 5 MHz to maximum operating frequency, Ta = -20 to +75C
Item SCL clock cycle time SCL clock high pulse width SCL clock low pulse width SCL, SDA input rise time SCL, SDA input fall time SCL, SDA input spike pulse elimination time SDA input bus free time Start condition input hold time Retransmission start condition input setup time Stop condition input setup time Data input setup time Data input hold time SCL, SDA capacitive load Symbol t SCL t SCLH t SCLL t Sr t Sf t SP Min 12 3 5 -- -- -- Typ -- -- -- -- -- -- Max -- -- -- 7.5 * 300 1 Unit t cyc t cyc t cyc t cyc ns t cyc Test Conditions Notes Figure 22.48
t BUF t STAH t STAS
5 3 3
-- -- --
-- -- --
t cyc t cyc t cyc
t STOS t SDAS t SDAH Cb
3 0.5 0 --
-- -- -- --
-- -- -- 400
t cyc t cyc ns pF
Note: * 17.5tcyc can be set according to the clock selected for use by the I 2C module. For details, see section 16.4, Usage Notes.
124
SDA0, SDA1 tBUF
VIH VIL tSTAH tSCLH tSP tSTOS
tSTAS
SCL0, SCL1 P* S* tSf tSCLL tSCL tSr tSDAH Sr* tSDAS P*
Note: * S, P, and Sr indicate the following conditions. S: Start condition P: Stop condition Sr: Retransmission start condition
Figure 22.48 I2C Bus Interface Input/Output Timing (Option)
125
22.3.4
A/D Conversion Characteristics
Tables 22.23 and 22.24 list the A/D conversion characteristics. Table 22.23 A/D Conversion Characteristics (AN7 to AN0 Input: 134/266-State Conversion) Condition A: VCC = 5.0 V 10%, AVCC = 5.0 V 10% VSS = AVSS = 0 V, o = 2 MHz to maximum operating frequency, Ta = -20 to +75C (regular specifications), Ta = -40 to +85C (wide-range specifications) Condition B: VCC = 4.0 V to 5.5 V, AVCC = 4.0 V to 5.5 V VSS = AVSS = 0 V, o = 2 MHz to maximum operating frequency, Ta = -20 to +75C (regular specifications), Ta = -40 to +85C (wide-range specifications) Condition C: VCC = 2.7 V to 3.6 V, AVCC = 2.7 V to 3.6 V VSS = AVSS = 0 V, o = 2 MHz to maximum operating frequency, Ta = -20 to +75C
Condition A 20 MHz Item Resolution Conversion time* Analog input capacitance Permissible signalsource impedance Nonlinearity error Offset error Full-scale error Quantization error Absolute accuracy
3
Condition B 16 MHz
Condition C 10 MHz
Min 10 -- -- --
Typ 10 -- -- --
Max 10 6.7 20 10*1 5*2
Min 10 -- -- --
Typ 10 -- -- --
Max 10 8.4 20 10*1 5*2
Min 10 -- -- --
Typ 10 -- -- --
Max 10 13.4 20 5
Unit Bits s pF k
-- -- -- -- --
-- -- -- -- --
3.0 3.5 3.5 0.5 4.0
-- -- -- -- --
-- -- -- -- --
3.0 3.5 3.5 0.5 4.0
-- -- -- -- --
-- -- -- -- --
7.0 7.5 7.5 0.5 8.0
LSB LSB LSB LSB LSB
Notes: *1 When conversion time 11. 17 s (CKS = 1 and o 12 MHz, or CKS = 0) *2 When conversion time < 11. 17 s (CKS = 1 and o > 12 MHz) *3 At the maximum operating frequency in single mode
126
Table 22.24 A/D Conversion Characteristics (CIN7 to CIN0 Input: 134/266-State Conversion) Condition A: VCC = 5.0 V 10%, AVCC = 5.0 V 10% VSS = AVSS = 0 V, o = 2 MHz to maximum operating frequency, Ta = -20 to +75C (regular specifications), Ta = -40 to +85C (wide-range specifications) Condition B: VCC = 4.0 V to 5.5 V, AVCC = 4.0 V to 5.5 V VSS = AVSS = 0 V, o = 2 MHz to maximum operating frequency, Ta = -20 to +75C (regular specifications), Ta = -40 to +85C (wide-range specifications) Condition C: VCC = 3.0 V to 3.6 V*4, AVCC = 3.0 V to 3.6 V*4 VSS = AVSS = 0 V, o = 2 MHz to maximum operating frequency, Ta = -20 to +75C
Condition A 20 MHz Item Resolution Conversion time* Analog input capacitance Permissible signalsource impedance Nonlinearity error Offset error Full-scale error Quantization error Absolute accuracy
3
Condition B 16 MHz
Condition C 10 MHz
Min 10 -- -- --
Typ 10 -- -- --
Max 10 6.7 20 10*1 5*2
Min 10 -- -- --
Typ 10 -- -- --
Max 10 8.4 20 10*1 5*2
Min 10 -- -- --
Typ 10 -- -- --
Max 10 13.4 20 5
Unit Bits s pF k
-- -- -- -- --
-- -- -- -- --
5.0 5.5 5.5 0.5 6.0
-- -- -- -- --
-- -- -- -- --
5.0 5.5 5.5 0.5 6.0
-- -- -- -- --
-- -- -- -- --
11.0 11.5 11.5 0.5 12.0
LSB LSB LSB LSB LSB
Notes: *1 *2 *3 *4
When conversion time 11. 17 s (CKS = 1 and o 12 MHz, or CKS = 0) When conversion time < 11. 17 s (CKS = 1 and o > 12 MHz) At the maximum operating frequency in single mode When using CIN input, V CC = 3.0 V to 3.6 V and AVCC = 3.0 V to 3.6 V.
127
22.3.5
Usage Note
(1) The F-ZTAT and mask ROM versions have been confirmed as fully meeting the reference values for electrical characteristics shown in this manual. However, actual performance figures, operating margins, noise margins, and other properties may vary due to differences in the manufacturing process, on-chip ROM, layout patterns, etc. When system evaluation testing is carried out using the F-ZTAT version, the same evaluation tests should also be conducted for the mask ROM version when changing over to that version. (2) On-chip power supply step-down circuit The H8S/2128 F-ZTAT does not incorporate an internal power supply step-down circuit. When changing over to F-ZTAT versions or mask ROM versions incorporating an internal step-down circuit, the V CC2 pin has the same pin location as the VCL pin in a step-down circuit. Therfore, note that the circuit patterns differ between these two types of products.
VCC power supply External capacitor for stabilizing power supply 0.47 F one or two connected in series VCC2 FP-64A, TFP-80C: 6 pin (VCL) DP-64S: 14 pin Product incorporating internal step-down circuit VSS FP-64A, TFP-80C: 8 pin DP-64S: 16 pin By-pass capacitor 10 F 0.01 F VSS VCC2 FP-64A, TFP-80C: 6 pin DP-64S: 14 pin Product not incorporating step-down circuit FP-64A, TFP-80C: 8 pin DP-64S: 16 pin
For products incorporating an internal step-down circuit, do not connect the VCL pin to the VCC power supply. (The VCC1 pin must be connected to the VCC power supply as usual.) The power supply stabilization capacitor must be connected to the VCL pin. Use a monolithic ceramic capacitor of 0.47 F(one or two connected in series) and locate it near the pins. In case the power supply voltage is lower than 3.6 V, connect the capacitor in the same way as the case with no step-down circuit incorporated. HD6432128S, HD6432128SW, HD6432127S, HD6432127SW
The location of the VCC2 (VCC power supply) pin in the product not incorporating an internal stepdown circuit, is the same as the VCL pin in a product incorporating an internal step-down circuit. It is recommended that the by-pass capacitors are connected to the power supply terminal (these are reference values). HD64F2128, HD64F2128V, HD6432127R, HD6432127RW, HD6432126R, HD6432126RW, HD6432122, HD6432120, HD6432128SV, HD6432128SVW, HD6432127SV, HD6432127SVW
Figure 22.49 Connection of External Capacitor (mask ROM type incorporating step-down circuit and product not incorporating step-down circuit)
128
(3) Specification differences in internal I/O registers Mask ROM version of H8S/2128S, H8S/2127S are different from the H8S/2128 Series and H8S/2124 Series in the specification of control registers for peripheral functions. A/D converter: A/D Control Register (ADCR)
H8S/2128 Series, H8S/2124 Series
Bit Initial value Read/Write 7 TRGS1 0 R/W 6 TRGS0 0 R/W 5 -- 1 -- 4 -- 1 -- 3 -- 1 -- 2 -- 1 -- 1 -- 1 -- 0 -- 1 --
Bits 5 to 0--Reserved bits: These bits cannot be modified and are always read as 1. H8S/2128S Series Mask ROM Version (internal step-down products) Bits 5 to 0--Reserved bits: Should always be written 1.
Power-down state: Standby Control Register (SBYCR)
H8S/2128 Series, H8S/2124 Series
Bit 6 STS2 0 Bit 5 STS1 0 1 1 0 1 Bit 4 STS0 0 1 0 1 0 1 0 1 Description Standby time = 8,192 states Standby time = 16,384 states Standby time = 32,768 states Standby time = 65,536 states Standby time = 131,072 states Standby time = 262,144 states Reserved Standby time = 16 states* (Initial value)
Note: * This setting must not be used in the flash memory versions.
H8S/2128S Series Mask ROM Version (internal step-down products)
Bit 6 STS2 0
Bit 5 STS1 0 1
Bit 4 STS0 0 1 0 1 0 1 0 1 Description Standby time = 8,192 states Standby time = 16,384 states Standby time = 32,768 states Standby time = 65,536 states Standby time = 131,072 states Standby time = 262,144 states Reserved Standby time = 16 states* (Initial value)
1
0 1
Note: * This setting must not be used in the flash memory versions and H8S/2128S Series.
129
22.4
22.4.1
Electrical Characteristics [H8S/2124 Series]
Absolute Maximum Ratings
Table 22.25 lists the absolute maximum ratings. Table 22.25 Absolute Maximum Ratings
Item Power supply voltage Input voltage (except ports 6, and 7) Input voltage (CIN input not selected for port 6) Input voltage (CIN input selected for port 6) Input voltage (port 7) Analog power supply voltage Analog input voltage Operating temperature Symbol VCC Vin Vin Vin Vin AVCC VAN Topr Value -0.3 to +7.0 -0.3 to VCC +0.3 -0.3 to VCC +0.3 Lower voltage of -0.3 to V CC +0.3 and AVCC +0.3 -0.3 to AVCC + 0.3 -0.3 to +7.0 -0.3 to AVCC +0.3 Regular specifications: -20 to +75 Wide-range specifications: -40 to +85 Storage temperature Tstg -55 to +125 Unit V V V V V V V C C C
Caution: Permanent damage to the chip may result if absolute maximum ratings are exceeded.
130
22.4.2
DC Characteristics
Table 22.26 lists the DC characteristics. Table 22.27 lists the permissible output currents. Table 22.26 DC Characteristics (1) Conditions: VCC = 5.0 V 10%, AVCC*1 = 5.0 V 10%, VSS = AVSS*1 = 0 V, Ta = -20 to +75C (regular specifications), Ta = -40 to +85C (wide-range specifications)
Item Schmitt P67 to P60 * * , (1) trigger input IRQ2 to IRQ0* 3 voltage Input high voltage RES, STBY, (2) NMI, MD1, MD0 EXTAL Port 7 Input pins except (1) and (2) above Input low voltage RES, STBY, MD1, MD0 NMI, EXTAL, input pins except (1) and (3) above Output high All output pins voltage Output low voltage Input leakage current All output pins Ports 1 to 3 RES STBY, NMI, MD1, MD0 Port 7 Iin VOL VOH (3) VIL
2 4
Symbol VT VT
- + + -
Min 1.0 -- 0.4
Typ -- -- --
Max --
Unit V
Test Conditions
VCC x 0.7 V -- VCC +0.3 VCC +0.3 V V V
VT - VT VIH
VCC - 0.7 -- VCC x 0.7 -- 2.0 2.0 -- --
AVCC +0.3 V VCC +0.3 V
-0.3 -0.3
-- --
0.5 0.8
V V
VCC - 0.5 -- 3.5 -- -- -- -- -- -- -- -- -- -- --
-- -- 0.4 1.0 10.0 1.0 1.0
V V V V A A A
I OH = -200 A I OH = -1 mA I OL = 1.6 mA I OL = 10 mA Vin = 0.5 to VCC - 0.5 V
Vin = 0.5 to AVCC - 0.5 V
131
Item Three-state Ports 1 to 6 leakage current (off state) Input pull-up MOS current Ports 1 to 3
Symbol ITSI
Min --
Typ --
Max 1.0
Unit A
Test Conditions Vin = 0.5 to VCC - 0.5 V
-I P
50
--
300
A
Vin = 0 V
Input RES capacitance NMI P52, P47, P24, P23 Input pins except (4) above Current Normal operation dissipation * 5 Sleep mode Standby mode* 6
(4)
Cin
-- -- -- --
-- -- -- -- 70 55 0.01 -- 1.5 0.01 -- -- --
80 50 20 15 90 75 5.0 20.0 3.0 5.0 5.5 5.5 --
pF pF pF pF mA mA A A mA A V V V
Vin = 0 V f = 1 MHz Ta = 25C
I CC
-- -- -- --
f = 20 MHz f = 20 MHz Ta 50C 50C < Ta
Analog power supply current
During A/D conversion Idle
AlCC
-- --
AVCC = 2.0 V to 5.5 V Operating Idle/not used
Analog power supply voltage* 1
AVCC
4.5 2.0
RAM standby voltage
VRAM
2.0
Notes: *1 Do not leave the AVCC, and AVSS pins open even if the A/D converter is not used. Even if the A/D converter is not used, apply a value in the range 2.0 V to 5.5 V to AV CC by connection to the power supply (V CC), or some other method. *2 P67 to P60 include supporting module inputs multiplexed on those pins. *3 IRQ2 includes the ADTRG signal multiplexed on that pin. *4 The upper limit of the port 6 applied voltage is V CC + 0.3 V when CIN input is not selected, and the lower of VCC + 0.3 V and AVCC + 0.3 V when CIN input is selected. When a pin is in output mode, the output voltage is equivalent to the applied voltage. *5 Current dissipation values are for V IH min = VCC - 0.5 V and VIL max = 0.5 V with all output pins unloaded and the on-chip pull-up MOSs in the off state. *6 The values are for VRAM VCC < 4.5 V, VIH min = VCC x 0.9, and V IL max = 0.3 V.
132
Table 22.26 DC Characteristics (2) Conditions: VCC = 4.0 V to 5.5 V, AVCC*1 = 4.0 V to 5.5 V, VSS = AVSS*1 = 0 V, Ta = -20 to +75C (regular specifications), Ta = -40 to +85C (wide-range specifications)
Item Schmitt P67 to P60 * * , (1) trigger input IRQ2 to IRQ0* 3 voltage
2 4
Symbol VT VT
- + + - + + - -
Min 1.0 -- 0.4 0.8 -- 0.3 VCC - 0.7
Typ -- -- -- -- -- -- --
Max --
Unit V
Test Conditions VCC = 4.5 V to 5.5 V
VCC x 0.7 V -- -- V V
VT - VT VT VT
VCC < 4.5 V
VCC x 0.7 V -- V
VT - VT Input high voltage RES, STBY, (2) NMI, MD1, MD0 EXTAL Port 7 Input pins except (1) and (2) above Input low voltage RES, STBY, MD1, MD0 NMI, EXTAL, input pins except (1) and (3) above Output high All output pins voltage VOH (3) VIL VIH
VCC +0.3 V VCC +0.3 V AVCC +0.3 V VCC +0.3 V
VCC x 0.7 -- 2.0 2.0 -- --
-0.3 -0.3
-- --
0.5 0.8
V V
VCC - 0.5 3.5
-- --
-- --
V V
I OH = -200 A I OH = -1 mA, VCC= 4.5 V to 5.5 V I OH = -1 mA, VCC < 4.5 V I OL = 1.6 mA I OL = 10 mA Vin = 0.5 to VCC - 0.5 V Vin = 0.5 to AVCC - 0.5 V
3.0 Output low voltage Input leakage current All output pins Ports 1 to 3 RES STBY, NMI, MD1, MD0 Port 7 Iin VOL -- -- -- -- --
-- -- -- -- -- --
-- 0.4 1.0 10.0 1.0 1.0
V V V A A A
133
Item Three-state Ports 1 to 6 leakage current (off state) Input pull-up MOS current Ports 1 to 3
Symbol ITSI
Min --
Typ --
Max 1.0
Unit A
Test Conditions Vin = 0.5 to VCC - 0.5 V
-I P
50
--
300
A
Vin = 0 V, VCC = 4.5 V to 5.5 V Vin = 0 V, VCC < 4.5 V Vin = 0 V, f = 1 MHz, Ta = 25C
30 (4) Cin -- -- -- -- I CC -- -- -- --
-- -- -- -- -- 55 42 0.01 -- 1.5 0.01 -- -- --
200 80 50 20 15 75 62 5.0 20.0 3.0 5.0 5.5 5.5 --
A pF pF pF pF mA mA A A mA A V V V
Input RES capacitance NMI P52, P47, P24, P23 Input pins except (4) above Current Normal operation dissipation * 5 Sleep mode Standby mode* 6
f = 16 MHz f = 16 MHz Ta 50C 50C < Ta
Analog power supply current
During A/D conversion Idle
AlCC
-- --
AVCC = 2.0 V to 5.5 V Operating Idle/not used
Analog power supply voltage* 1
AVCC
4.0 2.0
RAM standby voltage
VRAM
2.0
Notes: *1 Do not leave the AVCC, and AVSS pins open even if the A/D converter is not used. Even if the A/D converter is not used, apply a value in the range 2.0 V to 5.5 V to AV CC by connection to the power supply (V CC), or some other method. *2 P67 to P60 include supporting module inputs multiplexed on those pins. *3 IRQ2 includes the ADTRG signal multiplexed on that pin. *4 The upper limit of the port 6 applied voltage is V CC + 0.3 V when CIN input is not selected, and the lower of VCC + 0.3 V and AVCC + 0.3 V when CIN input is selected. When a pin is in output mode, the output voltage is equivalent to the applied voltage. *5 Current dissipation values are for V IH min = VCC - 0.5 V and VIL max = 0.5 V with all output pins unloaded and the on-chip pull-up MOSs in the off state. *6 The values are for VRAM VCC < 4.0 V, VIH min = VCC x 0.9, and V IL max = 0.3 V.
134
Table 22.26 DC Characteristics (3) Conditions : VCC = 2.7 V to 5.5 V, AVCC*1 = 2.7 V to 5.5 V, VSS = AVSS*1 = 0 V, Ta = -20 to +75C
Item Schmitt P67 to P60 * 2 * 4, (1) trigger input IRQ2 to IRQ0* 3 voltage Input high voltage RES, STBY, (2) NMI, MD1, MD0 EXTAL Port 7 Input pins except (1) and (2) above Input low voltage RES, STBY, MD1, MD0 NMI, EXTAL, input pins except (1) and (3) above Output high All output pins voltage VOH (3) VIL Symbol VT VT
- + + -
Min
Typ
Max --
Unit V
Test Conditions
VCC x 0.2 -- -- -- VCC x 0.05 -- VCC x 0.9 -- VCC x 0.7 -- VCC x 0.7 -- VCC x 0.7 --
VCC x 0.7 V -- V
VT - VT VIH
VCC +0.3 V VCC +0.3 V AVCC +0.3 V VCC +0.3 V
-0.3 -0.3
-- --
VCC x 0.1 V VCC x 0.2 V 0.8 V V V V V VCC < 4.0 V VCC = 4.0 V to 5.5 V I OH = -200 A I OH = -1 mA (VCC < 4.0 V) I OL = 1.6 mA I OL = 5 mA (VCC < 4.0 V), I OL = 10 mA (4.0 V VCC 5.5 V) Vin = 0.5 to VCC - 0.5 V Vin = 0.5 to AVCC - 0.5 V
VCC - 0.5 VCC - 1.0
-- -- -- --
-- -- 0.4 1.0
Output low voltage
All output pins Ports 1 to 3
VOL
-- --
Input leakage current
RES STBY, NMI, MD1, MD0 Port 7
Iin
-- -- --
-- -- --
10.0 1.0 1.0
A A A
135
Item Three-state Ports 1 to 6 leakage current (off state) Input pull-up MOS current Ports 1 to 3
Symbol ITSI
Min --
Typ --
Max 1.0
Unit A
Test Conditions Vin = 0.5 to VCC - 0.5 V
-I P
10
--
150
A
Vin = 0 V, VCC = 2.7 V to 3.6 V Vin = 0 V, f = 1 MHz, Ta = 25C
Input RES capacitance NMI P52, P47, P24, P23 Input pins except (4) above Current Normal operation dissipation * 5 Sleep mode Standby mode* 6
(4)
Cin
-- -- -- --
-- -- -- -- 40 30 0.01 -- 1.5 0.01 -- -- --
80 50 20 15 52 42 5.0 20.0 3.0 5.0 5.5 5.5 --
pF pF pF pF mA mA A A mA A V V V
I CC
-- -- -- --
f = 10 MHz f = 10 MHz Ta 50C 50C < Ta
Analog power supply current
During A/D conversion Idle
AlCC
-- --
AVCC = 2.0 V to 5.5 V Operating Idle/not used
Analog power supply voltage* 1
AVCC
2.7 2.0
RAM standby voltage
VRAM
2.0
Notes: *1 Do not leave the AVCC, and AVSS pins open even if the A/D converter is not used. Even if the A/D converter is not used, apply a value in the range 2.0 V to 5.5 V to AV CC by connection to the power supply (V CC), or some other method. *2 P67 to P60 include supporting module inputs multiplexed on those pins. *3 IRQ2 includes the ADTRG signal multiplexed on that pin. *4 The upper limit of the port 6 applied voltage is V CC + 0.3 V when CIN input is not selected, and the lower of VCC + 0.3 V and AVCC + 0.3 V when CIN input is selected. When a pin is in output mode, the output voltage is equivalent to the applied voltage. *5 Current dissipation values are for V IH min = VCC - 0.5 V and VIL max = 0.5 V with all output pins unloaded and the on-chip pull-up MOSs in the off state. *6 The values are for VRAM VCC < 2.7 V, VIH min = VCC x 0.9, and V IL max = 0.3 V.
136
Table 22.27 Permissible Output Currents Conditions: VCC = 4.0 V to 5.5 V, VSS = 0 V, Ta = -20 to +75C (regular specifications), Ta = -40 to +85C (wide-range specifications)
Item Permissible output low current (per pin) Permissible output low current (total) Ports 1, 2, 3 Other output pins Total of ports 1, 2, and 3 IOL Total of all output pins, including the above All output pins Total of all output pins -I OH -IOH Symbol Min I OL -- -- -- -- -- -- Typ -- -- -- -- -- -- Max 10 2 80 120 2 40 Unit mA mA mA mA mA mA
Permissible output high current (per pin) Permissible output high current (total)
Notes: 1. To protect chip reliability, do not exceed the output current values in table 22.27. 2. When driving a Darlington pair or LED, always insert a current-limiting resistor in the output line, as show in figures 22.50 and 22.51.
Table 22.27 Permissible Output Currents (cont) Conditions: VCC = 2.7 V to 5.5 V, VSS = 0 V, Ta = -20 to +75C
Item Permissible output low current (per pin) Permissible output low current (total) Ports 1, 2, 3 Other output pins Total of ports 1, 2, and 3 IOL Total of all output pins, including the above All output pins Total of all output pins -I OH -IOH Symbol Min I OL -- -- -- -- -- -- Typ -- -- -- -- -- --
- Preliminary -
Max 2 1 40 60 2 30
Unit mA mA mA mA mA mA
Permissible output high current (per pin) Permissible output high current (total)
Notes: 1. To protect chip reliability, do not exceed the output current values in table 22.27. 2. When driving a Darlington pair or LED, always insert a current-limiting resistor in the output line, as show in figures 22.50 and 22.51.
137
This chip
2 k Port
Darlington pair
Figure 22.50 Darlington Pair Drive Circuit (Example)
This chip
600 Ports 1 to 3 LED
Figure 22.51 LED Drive Circuit (Example) 22.4.3 AC Characteristics
Figure 22.52 shows the test conditions for the AC characteristics.
VCC RL Chip output pin C = 30 pF: All ports RL = 2.4 k RH = 12 k I/O timing test levels * Low level: 0.8 V * High level: 2.0 V
C
RH
Figure 22.52 Output Load Circuit
138
(1) Clock Timing Table 22.28 shows the clock timing. The clock timing specified here covers clock (o) output and clock pulse generator (crystal) and external clock input (EXTAL pin) oscillation settling times. For details of external clock input (EXTAL pin and EXCL pin) timing, see section 20, Clock Pulse Generator. Table 22.28 Clock Timing Condition A: VCC = 5.0 V 10%, VSS = 0 V, o = 2 MHz to maximum operating frequency, Ta = -20 to +75C (regular specifications), Ta = -40 to +85C (wide-range specifications) Condition B: VCC = 4.0 V to 5.5 V, VSS = 0 V, o = 2 MHz to maximum operating frequency, Ta = -20 to +75C (regular specifications), Ta = -40 to +85C (wide-range specifications) Condition C: VCC = 2.7 V to 5.5 V, VSS = 0 V, o = 2 MHz to maximum operating frequency, Ta = -20 to +75C
Condition A 20 MHz Item Clock cycle time Clock high pulse width Clock low pulse width Clock rise time Clock fall time Oscillation settling time at reset (crystal) Oscillation settling time in software standby (crystal) External clock output stabilization delay time Symbol t cyc t CH t CL t Cr t Cf t OSC1 Min 50 17 17 -- -- 10 Max 500 -- -- 8 8 -- Condition B 16 MHz Min 62.5 20 20 -- -- 10 Max 500 -- -- 10 10 -- Condition C 10 MHz Min 100 30 30 -- -- 20 Max 500 -- -- 20 20 -- Unit ns ns ns ns ns ms Figure 22.54 Figure 22.55 Test Conditions Figure 22.53 Figure 22.53
t OSC2
8
--
8
--
8
--
ms
t DEXT
500
--
500
--
500
--
s
139
tcyc tCH o tCL tCr tCf
Figure 22.53 System Clock Timing
EXTAL tDEXT VCC tDEXT
STBY tOSC1 RES tOSC1
o
Figure 22.54 Oscillation Settling Timing
o
NMI
IRQi (i = 0, 1, 2) tOSC2
Figure 22.55 Oscillation Setting Timing (Exiting Software Standby Mode)
140
(2) Control Signal Timing Table 22.29 shows the control signal timing. The only external interrupts that can operate on the subclock (o = 32.768 kHz) are NMI and IRQ0, 1, and IRQ2. Table 22.29 Control Signal Timing Condition A: VCC = 5.0 V 10%, VSS = 0 V, o = 32.768 kHz, 2 MHz to maximum operating frequency, Ta = -20 to +75C (regular specifications), Ta = -40 to +85C (wide-range specifications) Condition B: VCC = 4.0 V to 5.5 V, VSS = 0 V, o = 32.768 kHz, 2 MHz to maximum operating frequency, Ta = -20 to +75C (regular specifications), Ta = -40 to +85C (wide-range specifications) Condition C: VCC = 2.7 V to 5.5 V, VSS = 0 V, o = 32.768 kHz, 2 MHz to maximum operating frequency, Ta = -20 to +75C
Condition A 20 MHz Item RES setup time RES pulse width NMI setup time (NMI) NMI hold time (NMI) NMI pulse width (exiting software standby mode) IRQ setup time (IRQ2 to IRQ0) IRQ hold time (IRQ2 to IRQ0) IRQ pulse width (IRQ2 to IRQ0) (exiting software standby mode) Symbol t RESS t RESW t NMIS t NMIH t NMIW Min 200 20 150 10 200 Max -- -- -- -- -- Condition B 16 MHz Min 200 20 150 10 200 Max -- -- -- -- -- Condition C 10 MHz Min 300 20 250 10 200 Max -- -- -- -- -- Unit ns t cyc ns ns ns Figure 22.57 Test Conditions Figure 22.56
t IRQS t IRQH t IRQW
150 10 200
-- -- --
150 10 200
-- -- --
250 10 200
-- -- --
ns ns ns
141
o tRESS RES tRESW tRESS
Figure 22.56 Reset Input Timing
o
tNMIS NMI tNMIW
tNMIH
IRQi (i = 2 to 0) tIRQS IRQ Edge input tIRQS IRQ Level input
tIRQW tIRQH
Figure 22.57 Interrupt Input Timing
142
(3) Bus Timing Table 22.30 shows the bus timing. Operation in external expansion mode is not guaranteed when operating on the subclock (o = 32.768 kHz). Table 22.30 Bus Timing Condition A: VCC = 5.0 V 10%, VSS = 0 V, o = 2 MHz to maximum operating frequency, Ta = -20 to +75C (regular specifications), Ta = -40 to +85C (wide-range specifications) Condition B: VCC = 4.0 V to 5.5 V, VSS = 0 V, o = 2 MHz to maximum operating frequency, Ta = -20 to +75C (regular specifications), Ta = -40 to +85C (wide-range specifications) Condition C: VCC = 2.7 V to 5.5 V, VSS = 0 V, o = 2 MHz to maximum operating frequency, Ta = -20 to +75C
Condition A 20 MHz Item Address delay time Address setup time Address hold time CS delay time (IOS) AS delay time RD delay time 1 RD delay time 2 Read data setup time Read data hold time Symbol Min t AD t AS t AH t CSD t ASD t RSD1 t RSD2 t RDS t RDH -- Max 20 Min -- Condition B 16 MHz Max 30 Min -- Condition C 10 MHz Max 40 Test Unit Conditions ns ns ns ns ns ns ns ns ns ns ns Figure 22.58 to figure 22.62
0.5 x -- t cyc - 15 0.5 x -- t cyc - 10 -- -- -- -- 15 0 -- -- 20 30 30 30 -- -- 1.0 x t cyc - 30 1.5 x t cyc - 25
0.5 x -- t cyc - 20 0.5 x -- t cyc - 15 -- -- -- -- 20 0 -- -- 30 45 45 45 -- -- 1.0 x t cyc - 40 1.5 x t cyc - 35
0.5 x -- t cyc - 30 0.5 x -- t cyc - 20 -- -- -- -- 35 0 -- -- 40 60 60 60 -- -- 1.0 x t cyc - 60 1.5 x t cyc - 50
Read data t ACC1 access time 1 Read data t ACC2 access time 2
143
Condition A 20 MHz Item Symbol Min -- -- -- -- -- Max 2.0 x t cyc - 30 2.5 x t cyc - 25 3.0 x t cyc - 30 30 30
Condition B 16 MHz Min -- -- -- -- -- Max 2.0 x t cyc - 40 2.5 x t cyc - 35 3.0 x t cyc - 40 45 45
Condition C 10 MHz Min -- -- -- -- -- Max 2.0 x t cyc - 60 2.5 x t cyc - 50 3.0 x t cyc - 60 60 60 Test Unit Conditions ns ns ns ns ns ns ns ns ns ns ns ns Figure 22.58 to figure 22.62
Read data t ACC3 access time 3 Read data t ACC4 access time 4 Read data t ACC5 access time 5 WR delay time 1 WR delay time 2 WR pulse width 1 WR pulse width 2 Write data delay time Write data setup time Write data hold time WAIT setup time WAIT hold time t WRD1 t WRD2 t WSW1 t WSW2 t WDD t WDS t WDH t WTS t WTH
1.0 x -- t cyc - 20 1.5 x -- t cyc - 20 -- 0 10 30 5 30 -- -- -- --
1.0 x -- t cyc - 30 1.5 x -- t cyc - 30 -- 0 15 45 5 45 -- -- -- --
1.0x -- t cyc - 40 1.5 x -- t cyc - 40 -- 0 20 60 10 60 -- -- -- --
144
T1
T2
o tAD A15 to A0, IOS* tCSD AS* tAS tAH tASD tASD
tRSD1 RD (read) tAS
tACC2
tRSD2
tACC3 D7 to D0 (read)
tRDS
tRDH
tWRD2 WR (write) tAS tWDD D7 to D0 (write) tWSW1
tWRD2 tAH tWDH
Note: * AS and IOS are the same pin. The function is selected by the IOSE bit in SYSCR.
Figure 22.58 Basic Bus Timing (Two-State Access)
145
T1
T2
T3
o
tAD A15 to A0, IOS* tCSD AS* tAS tASD tASD tAH
tRSD1 RD (read) tAS
tACC4
tRSD2
tACC5 D7 to D0 (read)
tRDS
tRDH
tWRD1 WR (write) tWDD tWDS D7 to D0 (write) tWSW2
tWRD2 tAH tWDH
Note: * AS and IOS are the same pin. The function is selected by the IOSE bit in SYSCR.
Figure 22.59 Basic Bus Timing (Three-State Access)
146
T1
T2
TW
T3
o
A15 to A0, IOS* AS*
RD (read) D7 to D0 (read) WR (write) D7 to D0 (write) tWTS tWTH WAIT tWTS tWTH
Note: * AS and IOS are the same pin. The function is selected by the IOSE bit in SYSCR.
Figure 22.60 Basic Bus Timing (Three-State Access with One Wait State)
147
T1
T2 or T3
T1
T2
o
tAD A15 to A0, IOS* tAS AS* tASD tASD tAH
tRSD2 RD (read) tACC3 D7 to D0 (read) tRDS tRDH
Note: * AS and IOS are the same pin. The function is selected by the IOSE bit in SYSCR.
Figure 22.61 Burst ROM Access Timing (Two-State Access)
148
T1 o
T2 or T3
T1
tAD A15 to A0, IOS*
AS* tRSD2 RD (read) tACC1 D7 to D0 (read) tRDS tRDH
Note: * AS and IOS are the same pin. The function is selected by the IOSE bit in SYSCR.
Figure 22.62 Burst ROM Access Timing (One-State Access)
149
(4) Timing of On-Chip Supporting Modules Table 22.31 shows the on-chip supporting module timing. The only on-chip supporting modules that can operate in subclock operation (o = 32.768 kHz) are the I/O ports, external interrupts (NMI and IRQ0, 1, and IRQ2), the watchdog timer, and the 8-bit timer (channels 0 and 1). Table 22.31 Timing of On-Chip Supporting Modules Condition A: VCC = 5.0 V 10%, VSS = 0 V, o = 32.768 kHz*, 2 MHz to maximum operating frequency, Ta = -20 to +75C (regular specifications), Ta = -40 to +85C (wide-range specifications) Condition B: VCC = 4.0 V to 5.5 V, VSS = 0 V, o = 32.768 kHz*, 2 MHz to maximum operating frequency, Ta = -20 to +75C (regular specifications), Ta = -40 to +85C (wide-range specifications) Condition C: VCC = 2.7 V to 5.5 V, VSS = 0 V, o = 32.768 kHz*, 2 MHz to maximum operating frequency, Ta = -20 to +75C
Condition A Condition B Condition C 20 MHz Item I/O ports Symbol Min Output data delay t PWD time Input data setup time Input data hold time FRT t PRS t PRH -- 30 30 -- 30 30 1.5 2.5 Max 50 -- -- 50 -- -- -- -- 16 MHz Min -- 30 30 -- 30 30 1.5 2.5 Max 50 -- -- 50 -- -- -- -- 10 MHz Min -- 50 50 -- 50 50 1.5 2.5 Max 100 -- -- 100 -- -- -- -- t cyc Figure 22.65 ns Figure 22.64 Test Unit Conditions ns Figure 22.63
Timer output delay t FTOD time Timer input setup t FTIS time Timer clock input setup time Timer clock pulse width Single edge Both edges t FTCS t FTCWH t FTCWL
150
Condition A Condition B Condition C 20 MHz Item TMR Timer output delay time Timer reset input setup time Timer clock input setup time Timer clock pulse width SCI Input clock cycle Single edge Both edges Symbol Min t TMOD t TMRS t TMCS t TMCWH t TMCWL -- 30 30 1.5 2.5 4 6 t SCKW t SCKr t SCKf t TXD 0.4 -- -- -- Max 50 -- -- -- -- -- -- 0.6 1.5 1.5 50 16 MHz Min -- 30 30 1.5 2.5 4 6 0.4 -- -- -- Max 50 -- -- -- -- -- -- 0.6 1.5 1.5 50 10 MHz Min -- 50 50 1.5 2.5 4 6 0.4 -- -- -- Max 100 -- -- -- -- -- -- 0.6 1.5 1.5 100 ns Figure 22.70 t Scyc t cyc t cyc Figure 22.69 t cyc Test Unit Conditions ns Figure 22.66 Figure 22.68 Figure 22.67
Asynchro- t Scyc nous Synchronous
Input clock pulse width Input clock rise time Input clock fall time Transmit data delay time (synchronous)
Receive data setup t RXS time (synchronous) Receive data hold t RXH time (synchronous) A/D converter Trigger input setup t TRGS time
50 50 30
-- -- --
50 50 30
-- -- --
100 100 50
-- -- --
ns ns ns Figure 22.71
Note: * Only supporting modules that can be used in subclock operation
151
T1
T2
o
tPRS Ports 1 to 7 (read)
tPRH
tPWD Ports 1 to 6 (write)
Figure 22.63 I/O Port Input/Output Timing
o tFTOD FTOA, FTOB tFTIS FTIA, FTIB, FTIC, FTID
Figure 22.64 FRT Input/Output Timing
o tFTCS FTCI tFTCWL tFTCWH
Figure 22.65 FRT Clock Input Timing
152
o tTMOD TMO0, TMO1
Figure 22.66 8-Bit Timer Output Timing
o tTMCS TMCI0, TMCI1, TMIY tTMCWL tTMCWH
tTMCS
Figure 22.67 8-Bit Timer Clock Input Timing
o
tTMRS TMRI0, TMRI1, TMIY
Figure 22.68 8-Bit Timer Reset Input Timing
tSCKW SCK0, SCK1 tScyc tSCKr tSCKf
Figure 22.69 SCK Clock Input Timing
153
SCK0, SCK1 tTXD TxD0, TxD1 (transmit data) tRXS RxD0, RxD1 (receive data) tRXH
Figure 22.70 SCI Input/Output Timing (Synchronous Mode)
o
tTRGS ADTRG
Figure 22.71 A/D Converter External Trigger Input Timing
154
22.4.4
A/D Conversion Characteristics
Tables 22.32 and 22.33 list the A/D conversion characteristics. Table 22.32 A/D Conversion Characteristics (AN7 to AN0 Input: 134/266-State Conversion) Condition A: VCC = 5.0 V 10%, AVCC = 5.0 V 10% VSS = AVSS = 0 V, o = 2 MHz to maximum operating frequency, Ta = -20 to +75C (regular specifications), Ta = -40 to +85C (wide-range specifications) Condition B: VCC = 4.0 V to 5.5 V, AVCC = 4.0 V to 5.5 V VSS = AVSS = 0 V, o = 2 MHz to maximum operating frequency, Ta = -20 to +75C (regular specifications), Ta = -40 to +85C (wide-range specifications) Condition C: VCC = 2.7 V to 5.5 V, AVCC = 2.7 V to 5.5 V VSS = AVSS = 0 V, o = 2 MHz to maximum operating frequency, Ta = -20 to +75C
Condition A 20 MHz Item Resolution Conversion time* Analog input capacitance Permissible signalsource impedance Nonlinearity error Offset error Full-scale error Quantization error Absolute accuracy
5
Condition B 16 MHz
Condition C 10 MHz
Min 10 -- -- --
Typ 10 -- -- --
Max 10 6.7 20 10* 3 5*4
Min 10 -- -- --
Typ 10 -- -- --
Max 10 8.4 20 10* 3 5*4
Min 10 -- -- --
Typ 10 -- -- --
Max 10 13.4 20 10*1 5*2
Unit Bits
s
pF k
-- -- -- -- --
-- -- -- -- --
3.0 3.5 3.5 0.5 4.0
-- -- -- -- --
-- -- -- -- --
3.0 3.5 3.5 0.5 4.0
-- -- -- -- --
-- -- -- -- --
7.0 7.5 7.5 0.5 8.0
LSB LSB LSB LSB LSB
Notes: *1 *2 *3 *4 *5
When 4.0 V AVCC 5.5 V When 2.7 V AVCC < 4.0 V When conversion time 11. 17 s (CKS = 1 and o 12 MHz, or CKS = 0) When conversion time < 11. 17 s (CKS = 1 and o > 12 MHz) At the maximum operating frequency in single mode
155
Table 22.33 A/D Conversion Characteristics (CIN7 to CIN0 Input: 134/266-State Conversion) Condition A: VCC = 5.0 V 10%, AVCC = 5.0 V 10% VSS = AVSS = 0 V, o = 2 MHz to maximum operating frequency, Ta = -20 to +75C (regular specifications), Ta = -40 to +85C (wide-range specifications) Condition B: VCC = 4.0 V to 5.5 V, AVCC = 4.0 V to 5.5 V VSS = AVSS = 0 V, o = 2 MHz to maximum operating frequency, Ta = -20 to +75C (regular specifications), Ta = -40 to +85C (wide-range specifications) Condition C: VCC = 2.7 V to 5.5 V, AVCC = 2.7 V to 5.5 V VSS = AVSS = 0 V, o = 2 MHz to maximum operating frequency, Ta = -20 to +75C
Condition A 20 MHz Item Resolution Conversion time* Analog input capacitance Permissible signalsource impedance Nonlinearity error Offset error Full-scale error Quantization error Absolute accuracy
5
Condition B 16 MHz
Condition C 10 MHz
Min 10 -- -- --
Typ 10 -- -- --
Max 10 6.7 20 10* 3 5*4
Min 10 -- -- --
Typ 10 -- -- --
Max 10 8.4 20 10* 3 5*4
Min 10 -- -- --
Typ 10 -- -- --
Max 10 13.4 20 10*1 5*2
Unit Bits
s
pF k
-- -- -- -- --
-- -- -- -- --
5.0 5.5 5.5 0.5 6.0
-- -- -- -- --
-- -- -- -- --
5.0 5.5 5.5 0.5 6.0
-- -- -- -- --
-- -- -- -- --
11.0 11.5 11.5 0.5 12.0
LSB LSB LSB LSB LSB
Notes: *1 *2 *3 *4 *5
When 4.0 V AVCC 5.5 V When 2.7 V AVCC < 4.0 V When conversion time 11. 17 s (CKS = 1 and o 12 MHz, or CKS = 0) When conversion time < 11. 17 s (CKS = 1 and o > 12 MHz) At the maximum operating frequency in single mode
156
22.4.5
Usage Note
The specifications of the H8S/2128 F-ZTAT version and H8S/2124 Series mask ROM version differ in terms of on-chip module functions provided and port (P47, P52) output specifications. Also, while the F-ZTAT and mask ROM versions both satisfy the electrical characteristics shown in this manual, actual electrical characteristic values, operating margins, noise margins, and other properties may vary due to differences in manufacturing process, on-chip ROM, layout patterns, etc. When system evaluation testing is carried out using the H8S/2128 F-ZTAT version, the above differences must be taken into consideration in system design, and the same evaluation testing should also be conducted for the mask ROM version when changing over to that version.
157
158
Appendix F Product Code Lineup
Table F.1 H8S/2128 Series and H8S/2124 Series Product Code Lineup -- Preliminary --
Package (Hitachi Package Code) 64-pin shrink DIP (DP-64S) 64-pin QFP (FP-64A) 80-pin TQFP (TFP-80C) 64-pin shrink DIP (DP-64S) 64-pin QFP (FP-64A) 80-pin TQFP (TFP-80C) 64-pin shrink DIP (DP-64S) 64-pin QFP (FP-64A) 80-pin TQFP (TFP-80C)
Product Type H8S/2128 Series H8S/2128 F-ZTAT version Standard product (5 V/4 V version)
Product Code HD64F2128
Mark Code HD64F2128PS20 HD64F2128FA20 HD64F2128TF20
Notes
Low-voltage version HD64F2128V (3 V version)
HD64F2128VPS10 HD64F2128VFA10 HD64F2128VTF10
H8S/2127
Mask ROM Standard product version (5 V version, 4 V version, 3 V version)
HD6432127R
HD6432127R(***)PS HD6432127R(***)FA HD6432127R(***)TF
Version with on-chip HD6432127RW HD6432127RW(***)PS 64-pin shrink I2C bus interface DIP (DP-64S) (5 V version, HD6432127RW(***)FA 64-pin QFP 4 V version, (FP-64A) 3 V version) HD6432127RW(***)TF H8S/2126 Mask ROM Standard product version (5 V version, 4 V version, 3 V version) HD6432126R HD6432126R(***)PS HD6432126R(***)FA HD6432126R(***)TF 80-pin TQFP (TFP-80C) 64-pin shrink DIP (DP-64S) 64-pin QFP (FP-64A) 80-pin TQFP (TFP-80C)
Version with on-chip HD6432126RW HD6432126RW(***)PS 64-pin shrink I2C bus interface DIP (DP-64S) (5 V version, HD6432126RW(***)FA 64-pin QFP 4 V version, (FP-64A) 3 V version) HD6432126RW(***)TF 80-pin TQFP (TFP-80C)
159
Product Type H8S/2128S H8S/2128S Mask ROM Standard product Series version (5 V version, 4 V version)
Product Code HD6432128S
Mark Code HD6432128S(***)PS HD6432128S(***)FA HD6432128S(***)TF
Package (Hitachi Package Code) 64-pin shrink DIP (DP-64S) 64-pin QFP (FP-64A) 80-pin TQFP (TFP-80C) 64-pin shrink DIP (DP-64S) 64-pin QFP (FP-64A) 80-pin TQFP (TFP-80C)
Notes
Low-voltage version HD6432128SV (3 V version)
HD6432128SV(***)PS HD6432128SV(***)FA HD6432128SV(***)TF
Under planning
Standard product HD6432128SW HD6432128SW(***)PS 64-pin shrink with on-chip I2C bus DIP (DP-64S) interface HD6432128SW(***)FA 64-pin QFP (5 V version, (FP-64A) 4 V version) HD6432128SW(***)TF 80-pin TQFP (TFP-80C) Under planning
Low-voltage version HD6432128SVW HD6432128SVW(***)PS 64-pin shrink with on-chip I2C bus DIP (DP-64S) interface HD6432128SVW(***)FA 64-pin QFP (3 V version) (FP-64A) HD6432128SVW(***)TF 80-pin TQFP (TFP-80C) H8S/2127S Mask ROM Standard product version (5 V version, 4 V version) HD6432127S HD6432127S(***)PS HD6432127S(***)FA HD6432127S(***)TF Low-voltage version HD6432127SV (3 V version) HD6432127SV(***)PS HD6432127SV(***)FA HD6432127SV(***)TF 64-pin shrink DIP (DP-64S) 64-pin QFP (FP-64A) 80-pin TQFP (TFP-80C) 64-pin shrink DIP (DP-64S) 64-pin QFP (FP-64A) 80-pin TQFP (TFP-80C)
Under planning
Standard product HD6432127SW HD6432127SW(***)PS 64-pin shrink with on-chip I2C bus DIP (DP-64S) interface HD6432127SW(***)FA 64-pin QFP (5 V version, (FP-64A) 4 V version) HD6432127SW(***)TF 80-pin TQFP (TFP-80C) Under planning
Low-voltage version HD6432127SVW HD6432127SVW(***)PS 64-pin shrink with on-chip I2C bus DIP (DP-64S) interface HD6432127SVW(***)FA 64-pin QFP (3 V version) (FP-64A) HD6432127SVW(***)TF 80-pin TQFP (TFP-80C)
160
Product Type H8S/2124 Series H8S/2122 Mask ROM Standard product version (5 V version, 4 V version, 3 V version)
Product Code HD6432122
Mark Code HD6432122(***)PS HD6432122(***)FA HD6432122(***)TF
Package (Hitachi Package Code) 64-pin shrink DIP (DP-64S) 64-pin QFP (FP-64A) 80-pin TQFP (TFP-80C) 64-pin shrink DIP (DP-64S) 64-pin QFP (FP-64A) 80-pin TQFP (TFP-80C)
Notes
H8S/2120
Mask ROM Standard product version (5 V version, 4 V version, 3 V version)
HD6432120
HD6432120(***)PS HD6432120(***)FA HD6432120(***)TF
Note: (***) is the ROM code. The F-ZTAT version of the H8S/2128 has an on-chip I 2C bus interface as standard. The F-ZTAT 5 V/4 V version supports the operating ranges of the 5 V version and the 4 V version. The operating range of the F-ZTAT low-voltage version will be decided later. The above table includes products in the planning stage or under development. Information on the status of individual products can be obtained from Hitachi's sales offices.
161
162
H8S/2128 Series, H8S/2124 Series, H8S/2128F-ZTATTM Hardware Manual (Supplement)
Publication Date: 1st Edition, December 1997 3rd Edition, May 2002 Published by: Business Operation Division Semiconductor & Integrated Circuits Hitachi, Ltd. Edited by: Technical Documentation Group Hitachi Kodaira Semiconductor Co., Ltd. Copyright (c) Hitachi, Ltd., 1997. All rights reserved. Printed in Japan.


▲Up To Search▲   

 
Price & Availability of HD6432120FA

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X